CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Threaded View

  1. #1
    Join Date
    Mar 2007
    Posts
    274

    [RESOLVED] Appending colored text to a richtextbox?

    The thread title is pretty self explanitory. I'd think this would be easy, but my approaches havent worked. Any ideas?

    I have an RTB that is filled line by line via a console application's standard output stream. I want to color parts of the line of text before it gets appended.

    Here is the line of code I have that appends the stream output line to the RTB:

    Dictionary_RTB(sender).Text += Dictionary_Output(sender);

    That line of code is essentially the same as:

    RichTextBox1.Text += (string) OuputString;


    Any ideas here?


    If I can get the character position of the first character in the last line of the RTB, that would be perfect.
    Last edited by Traps; February 13th, 2009 at 01:51 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured