Hello everyone,
Does anybody know how to change the rich text box's selection color? (By default it's black) How about hilighting text?
Any suggestions appreciated,
Thanks
Printable View
Hello everyone,
Does anybody know how to change the rich text box's selection color? (By default it's black) How about hilighting text?
Any suggestions appreciated,
Thanks
TO change the colour of selected text use the SelColour property.
to highlight a bit of text you set the start position using selStart, and the length using selLength
Code:'highlights the first 5 characters
RichTextBox1.SelStart = 1
RichTextBox1.SelLEngth = 5
'and sets them to blue
RichTextBox1.SelColor = vbBlue
Thanks Iain for the answer, but that's not what I'm looking for. :)
I'm trying to find a way of hilighting (not coloring) text in the rich text box in a different color than black (it's default hilighting color.)
Thanks again,
Owner drawing the control would probably be too complicated...
But I'm almost certain that there's an easier way. :)
Any ideas?
View these threads, it may help in Highlighting: http://forums.vb-world.net/showthrea...threadid=21663 or http://forums.vb-world.net/showthrea...threadid=20644