Set each character in TextBox a different colour?

  • Thread starter Thread starter Guest
  • Start date Start date
Hi redneon,

No, a TextBox can only have a single Font, and therefore only one size, color, shape etc. You can use a RichTextBox though.
 
No, a TextBox can only have a single Font, and therefore only one size,
color,
shape etc. You can use a RichTextBox though.

I was thinking more along the lines of overriding the paint method of the
control. Would this not allow it?
 
redneon said:
color,
shape etc. You can use a RichTextBox though.

I was thinking more along the lines of overriding the paint method of the
control. Would this not allow it?

The TextBox control is drawn by Windows, thus it's not as easy to implement
the functionality you want to archieve. I suggest to use the RichTextBox
control instead of the textbox too.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top