how to set text back color for rich text box

  • Thread starter Thread starter supriya
  • Start date Start date
S

supriya

Hi all,
Is there any way to set the back ground color of text in rich text box..
I dont want to set the entire back ground color of text box but only the
place where i have text.
actually using the BackColor property its possible to set the background
color of the text box..but what i want is
RichTextbox.Text.BackColor.. like this..
Please tell me if any way is thr for this.
thnx
 
supriya said:
Hi all,
Is there any way to set the back ground color of text in rich text box..
I dont want to set the entire back ground color of text box but only the
place where i have text.
actually using the BackColor property its possible to set the background
color of the text box..but what i want is
RichTextbox.Text.BackColor.. like this..

Try something like

richTextBox1.SelectAll();
richTextBox1.SelectionBackColor = Color.Yellow;

Chris Jobson
 
Back
Top