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.
 
Back
Top