How do you reset a RichTextBox? I wrote some code that changes the RichTextBox1.SelectionColor = Color.White and RichTextBox1.SelectionBackColor = Color.Red. I'd like to change all the text in the RichTextBox back to Black and no back color.
Printable View
How do you reset a RichTextBox? I wrote some code that changes the RichTextBox1.SelectionColor = Color.White and RichTextBox1.SelectionBackColor = Color.Red. I'd like to change all the text in the RichTextBox back to Black and no back color.
Like this:
Code:Dim i As Integer = RichTextBox1.SelectionStart
RichTextBox1.SelectAll()
RichTextBox1.SelectionColor = Color.Black
RichTextBox1.SelectionBackColor = Me.BackColor 'Or White
RichTextBox1.BackColor = Me.BackColor 'Or White
RichTextBox1.SelectionStart = i
Thanks