Selected words to be colored in a richtext box

VPK_Access

Registered User.
Local time
Today, 03:47
Joined
May 15, 2011
Messages
36
Hi,

I have a Rich Textbox to which I would be writing a certain data. Is it possible that from the words I can color certain word only.

eg: I need to color the word "Userid" when written into the richtext box to 'Red' color.

I am able to do this manually as the popup comes in the rixhtext to do this. However what I want is to do the same automatically using VB code. I was able to change the color of the enite richtext box using 'me.RichTextBox1.ForeColor = vbRed'. However coudnt find a way to color only a certain portion of text.


Can anyone help me pleaseeee.
 
Could you not use two labels instead?? With that you can break into two parts one with normal text and the other one with color formatting.. It is just an opinion as I am not sure if that is even possible..
 

Users who are viewing this thread

Back
Top Bottom