Text Highlight  
Author Message
HL8476





PostPosted: Visual C++ General, Text Highlight Top

How do I highlight or change the colour of a portion of the entire text either in list control or text box

Visual C++6  
 
 
Timo S





PostPosted: Visual C++ General, Text Highlight Top

Okay I think that you should use richTextBox, not text box.. :) Then you should make a selection in your text and use SelectionColor to highlight your text:

richTextBox1->SelectionColor = Color::Red;

Hope this helps!


Timo