RichTextBox1.BackColor

VB.NET:
RichTextBox1.ReadOnly = True
RichTextBox1.BackColor = SystemColors.Window
or
VB.NET:
RichTextBox1.Enabled = False
RichTextBox1.BackColor = SystemColors.Window
 
in RichTextBox1.TextChanged ....
the event when you change text type
RchTextbox1.Text = ""

and just set the color to what you like.


every time you'll type something in it will get erased
 
Hi,

To: GuruMadMat

In the next code that you suggest
You cannot Enable to enter any text to the RichTextBox !!!
VB.NET:
[LEFT][FONT=Courier New]   [COLOR=blue]Private[/COLOR] [COLOR=blue]Sub[/COLOR] RichTextBox1_TextChanged...[/FONT]
[FONT=Courier New]       RichTextBox1.Text = [COLOR=maroon]""[/COLOR][/FONT]
[FONT=Courier New]   [COLOR=blue]End[/COLOR] [COLOR=blue]Sub[/COLOR][/FONT][/LEFT]
 
Back
Top