Adding multi colour text to rich text control

  • Thread starter Thread starter John
  • Start date Start date
John said:
How can I add some txt in red and other in grey to a rich text control?

Take a look at the overloaded 'Select' method and the control's
'SelectionColor' property.
 
Hi

Thanks for that. I am not sure how to do it. For instance I am appending two
lines and I want both in different colours like this;

My.Forms.frmMyForm.txtMyRichText.AppendText("This text needs to be in
black")

My.Forms.frmMyForm.txtMyRichText.AppendText("This text needs to be in red")

Thanks

Regards
 
Back
Top