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.
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.