0

I did not see anything about how to have multiple colors in a textbox. Is this possible, or must I use a richtextbox?. I would like to keep it simple if possible by setting it up in a standard textbox. Can someone help me with this? As an example of what I am talking about, consider:

Giraffe

How can I do something like this?

2
Contributors
2
Replies
4
Views
6 Years
Discussion Span
Last Post by arkanoid
1

With a RTB you can. Something like:

RichTextBox1.SelStart = 0
RichTextBox1.SelLength = 1
RichTextBox1.SelColor = vbRed
RichTextBox1.SelStart = 1
RichTextBox1.SelLength = 6
RichTextBox1.SelColor = vbGreen
0

With a RTB you can. Something like:

RichTextBox1.SelStart = 0
RichTextBox1.SelLength = 1
RichTextBox1.SelColor = vbRed
RichTextBox1.SelStart = 1
RichTextBox1.SelLength = 6
RichTextBox1.SelColor = vbGreen

Thanks!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.