C# – text box read only

cnettextbox

i create form with TextBox on it. Text box have a ReadOnly true propertiy. when i add text to text box. all text inside the text box is selected. how i can rid that. i tried to change value of SelectionLength, SelectionStart, SelectedText properties but that did not help.
I Use VC# 2008 express.

Best Answer

try

textbox1.Enabled = false;