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?

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

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!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.