954,541 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

multiple colors in a textbox

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?

arkanoid
Newbie Poster
4 posts since Apr 2010
Reputation Points: 10
Solved Threads: 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
Momerath
Nearly a Senior Poster
3,386 posts since Aug 2010
Reputation Points: 1,232
Solved Threads: 558
 

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!

arkanoid
Newbie Poster
4 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: