Ruler Control For RichTextBox Control?
Aug 16, 2008
Does any one know where I can find a ruler control that inherits RichTextBox Control for VB 2008 with code. I am building my own word processor and I am trying to make it look like MS Word. I am somewhat new to this, so take it easy on me ladies and gents. i am using VB 2008 Express Edition, Windows Form.VB 6.0, VBExprss, ASP,Net, & Gaming
View 3 Replies
ADVERTISEMENT
Mar 2, 2012
Is there a control or something similar to a canvas with a margin(ruler), like in MS Word,in .NET WPF or WinForms?
I need to place some custom elements inside that user can modify in that canvas.
View 2 Replies
Nov 14, 2011
I am looking for a VB control that operates as a more or less transparent or semi-transparent ruler or bar that can be scrolled up and down the form over an invoice or letter, so that the user can see what is under the ruler/bar and thus stop scrolling when he reaches a certain point.
To give a bit more detail of what I am looking for - such a bar is used when someone is setting the focus on a line of a long list of items so that they know where they are all the time. Most people would use a ruler on a paper list to keep track of how far they have progressed down the list. It would be nice though to have the "ruler" or bar as semi-transparent so that the user can see under where he is at on the list or form.
View 2 Replies
Sep 19, 2009
I have an advanced word processor and I need to add a ruler. I have searched the web and cant seem to find just the ruler control in inches.
View 4 Replies
May 26, 2011
I just want to know that how can i highlight text on a richtextbox control while reading the text using speech sdk control. I mean the word currently speak automatically selected in the RichTextBox.
View 2 Replies
Aug 22, 2011
I Want Just Ask If It's Possible I Have A RichTextBox And I Wanted To Detect If The Control Needs A Scroll Bar But Without Performing The Any Other Function (Without Changing The Text).
View 1 Replies
Dec 9, 2009
i want to embed a control in richtextbox , so that when ever i am writing or editing (text changed ) the control should automatically Change its position. Suppose i have a button control , which i hav added at position (100,100) . So when ever i am writing or editing something it should automatically change its position like text.
View 3 Replies
Oct 16, 2009
Drawing on top of a RichTextBox control has always been a pain due to the Paint event, and related OnPaint() method being suppressed. Here is a bit of code that gets around this issue.The following derived RichTextBox will use a seperate NativeWindow control to hook into the message stream of the RichTextBox, listen for the WM_PAINT message, and then raise the Paint event on the RichTextBox for you.In this way, it is possible to use the Paint event handler of the RichTextBox control to paint on top of the control after it has performed its default rendering of the text.The following code is an initial implementation but appears to be pretty solid so far. 'Based in part on code located at: [URL]
''' <summary>
''' A RichTextBox object which raises, and utilizes, its own Paint event.
''' </summary>
''' <remarks></remarks>
[Code].....
I may continue to expand upon this idea, but I wanted to get the initial code out here as this seems to be the minimum to get the painting functionality to work.Reed Kimble - "When you do things right, people won't be sure you've done anything at all"
View 1 Replies
May 18, 2010
After scouring the inter-webs for info on printing in vb.net, it seems to me that it's pretty difficult.
My question is, is there a simple way to print something that is in a RichTextBox control?
View 2 Replies
Jun 8, 2009
I am working in vb2008. I understand how to set a richtextbox's selectedstart property to a text block using .find. I would like to know how to tell the richtextbox to scroll to the selected position based upon the find operation and show its position at the top of the window. I would like to pass text blocks into my richtextbox control and have the control automatically scrolll to that position if the text block is found.
View 2 Replies
Jan 9, 2010
I was checking out the internet to get some information on VScrollBar control in VB.NET, however I can't find any useful information on what I am trying to do, as I have never worked with VScrollBar before.
What I am trying to do is use a VScrollBar control to handle scrolling of two Richtextboxes (i.e. synchronized scrolling) because each line of richtextbox1 is associated with the corresponding line of richtextbox2.
View 3 Replies
Dec 29, 2010
Here's my situation: I have a control with motion graphics (for the sake of simplicity, a 'video player' control) in my project. Think of a PictureBox with constantly-changing images. In front of this will sit a second control (such as a second PictureBox of the same dimensions). The topmost PictureBox will be drawn to in its Paint event.
I need to draw very few elements, and the bottom control is updated much more frequently than I need for this drawing. So these elements are drawn to the topmost control. Think of a news broadcast, where they have live video in the background, with a news channel logo, news ticker, and sometimes gradient visible in front.
I'm trying to create that 'foreground' control, and the closest I believe I have gotten so far is the following:
Imports System.Drawing
Imports System.Drawing.Imaging
Imports System.Drawing.Drawing2D
[CODE]...
The 'Opacity' property in the code above is a sort of "scaling factor." The image drawn to the top control may, in different parts of the image, have any alpha value from full transparent to a full 255. This 'Opacity' property is applied to the entire image being drawn, scaling the alpha values of each pixel.
See the following pictures for description:
[URL]
[URL]
[URL]
View 9 Replies
Sep 29, 2010
I need help Related to this form [URL]...Related to that topic Using the same code how can i add more then one color so how can i add it more then once So like words = the and bob ect... but I make a new dim call it words 2 = for next then ect... diffrent color I do this and it cancels out the blue the first one, so like this
[Code]...
So then i try it purple works but now blue does not..i know its possible with this one! All i want is to be able to add other words in a different color! Because this code works like a charm
View 7 Replies
Oct 2, 2010
I need some code to add the contextmeu to the richbox Not the tabcontrol But the richtextbox is in the control, So I have the CType(TabControl1.SelectedTab.Controls.Item(0),RichTextBox) But now what to add the context menu?
View 6 Replies
Jul 10, 2009
I want to be able to have a richtextbox scroll event synced with the scroll of another richtextbox. Do any of you know how this is possible
View 4 Replies
Apr 19, 2010
I have read and played with code that streams output to a richtextbox but that is runningit from cmd.exe but I run kix32 programs like anything.kix using commmand line kix32 c:anything.kix and it can be run from a *.cmd file as well.
why havent' experts made a toolbox item/control that is say called console? like they seem to have many others dialogbox - browse box etc...? It has been years since VB.net has been out. why why dont they make one??huh? I have looked all over net and it ant no easy job either.
I mean all the code i see makes it very difficult you have to be an expert just to make the coding. Is there some class or something that maybe a beginner/intermediate might be able to tackle..
I just want the command line that is initiated by the kix32 engine to be streamed to my richtextbox in my gui vb.net program
View 8 Replies
Jun 19, 2008
I have a richtextbox in a form. I would to insert in this richtextbox a hyperlink with a text that will appear in the box, and a web address(hidden) that will open by clicking on the link. what is the correct code rtf to do this?
View 9 Replies
Jan 10, 2011
I have just turned to using VB.net and would like to know why when I load an RTF (with tables in a 9x9 cell format) all appears in a 1x9 format...i.e. instead of loading the tables (some are side by side), they load up in series (below each other).
My simple line of code on a button is:
RichTextBox.LoadFile("c: est.rtf")
View 3 Replies
Nov 20, 2009
I am using a RichTextBox control and a Socket Class. When I use the AppendText function in Form_load it get's added, but not in the event when text is received.
Code:
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
client.Connect(URL, PORT)
RichTextBox1.AppendText("Connecting...")
End Sub
Private Sub client_onConnect() Handles client.onConnect
[Code] .....
Just so you know, the MessageBox showing in Data is working perfectly.
View 10 Replies
Apr 23, 2008
I am currently working on a code editor program for Linden Scripting Language (Second Life Code) and I am having a lot of trouble using the Syntax Highlighting class which i have found on a website [URL] I dont understand, the Class inherits the System.Windows.Forms.RichTextBox so it should change the color of the text if i type one of the keywords shouldnt it and i should not have to do any codeing for the RTB (or do i?)
View 5 Replies
Jan 29, 2010
i have currently a dictionary of 20,000 words and since i want my application to be ran independently, i want to use the words in my dictionary to spell check all words in the RTB Control.
View 2 Replies
Oct 24, 2010
I have some code which displays data in a hexadecimal format, so each line of the display looks like this ...
000000 xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx cccccccccccccccc
... where the left six characters are an offset and each xx represents one character and the string of cs on the right are the actual characters.
I've learned that I have to keep control characters out of that string of cs or the display gets messed up. I've been using this code and it works fine (when it's not commented out). (binbuf is a Byte array)
'Select Case Convert.ToInt32(binbuf(i)) < 128
' Case True 'traditional ASCII character
' If Convert.ToChar(binbuf(i)) <> " "c Then
[code]....
View 4 Replies
Oct 23, 2010
I am having trouble with the fonts on a richtextbox control what I need is to do the following;
*Selected Text Within
1.Bold*
2.Italic*
3.Underline*
4.Strikeout*
5.Font up 1 such as from 10 button clicked then 12*
6.Font down Vice versa of 5*
7.Printing text in the RTB
View 3 Replies
Apr 20, 2011
I want to create a text editor control and I tried to download a RichTextBox control in vs 2008 but i can't find it fo free. any one can give me a link to download it for free.
View 6 Replies
Jan 9, 2010
I am trying to get the output of a CMD command attached to a RichTextBox control. For this sample, I am using the PING command. It works but unfortunately not the way I want it to. Instead of 'appearing' in my RichTextBox line by line, it waits until the entire process is completed and then it attachs it to my RTB.
[Code]...
View 5 Replies
Jun 14, 2010
I want to put some text in rich text box and want to control the colour of it.
E.g.: "Here is blue, and here is red!"
View 4 Replies
Jan 14, 2011
I'm creating a text editor program in VB with richtextbox's and you are able to have multiple documents open with a tab control. the only problem is I DON'T KNOW HOW TO SAVE THE TEXT IN A RICHTEXTBOX IN A FILE WHEN IT DOESN'T EXIST YET!!!
View 12 Replies
Jan 6, 2010
I have previously used the arguments of a contentsResized event on a Winforms richtextbox to get the new size of my RTB. I am now developing a WinForms app with a custom WPF RichTextBox. My whole reason for doing this is to use the out-of-the-box spellchecker. I need my RichTextBox to expand and collapse vertically as the text is changed. The elementhost will also have to resize to allow the whole RTB to display on-screen.
View 1 Replies
Jan 12, 2009
I need some help loading RTF files in a RichTextBox Control. The RTF file i have has a lot of textbox and some graphics. I tried several methods, but i cannot load the RTF file correctly.Here is what i have so far:
Code:
Private Sub btnLoadFile_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLoadFile.Click
Dim fn As String
Try
[Code]...
I suspect that the LoadFile method cannot read the TextBoxes in my RTF file, or maybe i'm missing something. Attached is the file i'm working on.
View 2 Replies
Apr 22, 2011
i'am having trouble in making a spell checker for vb.net richtextbox control.I have made a form with richtextbox control and a panel control. I have put a listbox control in the panel control and filled with certain words. What iam able to do is whenever i select a word and click a button the panel appears just below the word (using get position from char) and display the choice. What iam not able to do is:
1) Select each word one-by-one whenever i click a button say F1 - I know keypress event but how do i select the words through keypress. I know they are separated by spaces but iam not familiar as to how to take advantage of it. The major problem being that there can be 2-3 words together sometimes colored as red. Eg: What i want is when i press F1 first time "this" is selected, next time "is" is selected and next time "nice car color" is selected. The two things are spaces and red color but i don't get anything from it.
2) Display the panel correctly within the main form's border. Right now when i select the last word of the sentence some part of panel disappears as it hides behind the main form. Eg - only 1/4th appears and rest hides. I can't find a way to limit it from moving when it has reached the main form size. I want to constrain it between top-bottom and left-right border of main form.
View 1 Replies