Thread: Line #'s to richtext box in VS 11

  1. #1
    Registered User verbity's Avatar
    Join Date
    Nov 2006
    Posts
    101

    Line #'s to richtext box in VS 11

    I'm trying to add line numbers to a text editor I'm building but not having much luck. I'm trying to find a way around building something massive with a picture box next to my textbox etc. I'm tried adding VS Basic to my references and searching for the linenum_rtf.cs but I can't seem to find it under existing items. Any thoughts or suggestions would be appreciated.

  2. #2

  3. #3
    Registered User verbity's Avatar
    Join Date
    Nov 2006
    Posts
    101
    Yeah I read that one and gave it a shot. It seems to freak out with VS 11. I finally got the linenum_rtf.cs control to work. But it's buggy at best.

  4. #4
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    The standard Windows RTF control as it stands is buggy at best. The best version of it is the Windows Form's version and even it has it's fair share of issues.

  5. #5
    Registered User verbity's Avatar
    Join Date
    Nov 2006
    Posts
    101
    Quote Originally Posted by VirtualAce View Post
    The standard Windows RTF control as it stands is buggy at best. The best version of it is the Windows Form's version and even it has it's fair share of issues.
    Well I got it working finally. It is a better solution than a constant loop on a textbox looking for new text. At least that's the only way I could figure how to do it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 06-07-2012, 02:50 AM
  2. Replies: 21
    Last Post: 08-07-2011, 09:55 PM
  3. Read text file line by line and write lines to other files
    By magische_vogel in forum C Programming
    Replies: 10
    Last Post: 01-23-2011, 10:51 AM
  4. Replies: 7
    Last Post: 12-13-2010, 02:13 PM
  5. Replies: 1
    Last Post: 05-20-2006, 11:17 PM