H-SC
asked on
Change font color in richtextbox only for selected string
I have a richtextbox on a form with a button that brings up a colordialog. Currently if I use this method when I choose a color it changes everything in the richtextbox to that particular color.
here is what I would like ...
I would like to be able to highlight or select text and change the color only for the selected string.
Thanks in advance.
here is what I would like ...
I would like to be able to highlight or select text and change the color only for the selected string.
Thanks in advance.
ASKER
Bob,
Do I put this code on the button click?
Do I put this code on the button click?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Idle Mind,
That worked great !
That worked great !
Me.RichTextBox1.SelectionS
Me.RichTextBox1.SelectionL
Me.RichTextBox1.SelectionC
Bob