|
-
Jul 12th, 2000, 02:42 PM
#1
Thread Starter
New Member
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
Alex Begey
CrystalDev
VB6 SP4
-
Jul 12th, 2000, 02:56 PM
#2
Fanatic Member
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
Iain, thats with an i by the way!
-
Jul 12th, 2000, 03:03 PM
#3
Thread Starter
New Member
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,
Alex Begey
CrystalDev
VB6 SP4
-
Jul 12th, 2000, 03:52 PM
#4
Thread Starter
New Member
Owner drawing the control would probably be too complicated...
But I'm almost certain that there's an easier way. 
Any ideas?
Alex Begey
CrystalDev
VB6 SP4
-
Jul 12th, 2000, 09:44 PM
#5
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|