J John Apr 11, 2007 #1 Hi How can I add some txt in red and other in grey to a rich text control? Thanks Regards
H Herfried K. Wagner [MVP] Apr 13, 2007 #2 John said: How can I add some txt in red and other in grey to a rich text control? Click to expand... Take a look at the overloaded 'Select' method and the control's 'SelectionColor' property.
John said: How can I add some txt in red and other in grey to a rich text control? Click to expand... Take a look at the overloaded 'Select' method and the control's 'SelectionColor' property.
J John Apr 14, 2007 #3 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
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