Chat LIVE With Programming Experts! There Are 23 Online Right Now...

Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 244,287 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 959 people online right now. Registration is fast and FREE... Join Now!




RichTextBox

 
Reply to this topicStart new topic

RichTextBox, A couple questions

Wovaki
19 Nov, 2008 - 07:54 AM
Post #1

New D.I.C Head
*

Joined: 14 Nov, 2008
Posts: 18


My Contributions
Hello DreamInCode!

I have a few questions about how to do stuff with the RichTextBox:

My First Question:
How do you add line numbers to a RichTextBox?

I have searched for it on google, but anything I had found was really messy and hard to understand.
I seen one that used a PictureBox to show the line numbers, but I couldn't really get anything else from it.

My Second Question:
How do you get the location of the users Insertion Point?

I want to be able to insert words into the RichTextBox at the point where the user is typing.

My Third Question:
How can I make Syntax Highlighting?

I tryed doing this my self, but I could not get it.


Thanks

This post has been edited by Wovaki: 19 Nov, 2008 - 11:55 AM

User is offlineProfile CardPM
+Quote Post


dineeshd
RE: RichTextBox
19 Nov, 2008 - 08:56 AM
Post #2


Group Icon

Joined: 30 Jun, 2008
Posts: 600



Thanked: 25 times
Dream Kudos: 575
My Contributions
Here are two samples for your first question.

http://www.codeproject.com/KB/vb/RTF_LineNumbering.aspx

http://www.xtremedotnettalk.com/showthread...ght=RichTextBox
User is offlineProfile CardPM
+Quote Post

Wovaki
RE: RichTextBox
19 Nov, 2008 - 11:56 AM
Post #3

New D.I.C Head
*

Joined: 14 Nov, 2008
Posts: 18


My Contributions
QUOTE(dineeshd @ 19 Nov, 2008 - 08:56 AM) *


Thanks I will check these out!

I also added another question, hopefully someone can help me out.

Thanks in Advance

User is offlineProfile CardPM
+Quote Post

AdamSpeight2008
RE: RichTextBox
19 Nov, 2008 - 12:45 PM
Post #4

The Bandido Coder
Group Icon

Joined: 29 May, 2008
Posts: 1,654



Thanked: 99 times
Dream Kudos: 3350
Expert In: vb.net, LINQ

My Contributions
Enter: Syntax Highlight in the search box.
There are several examples.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 7/4/09 03:15PM

Live VB.NET Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month