Select text in a disabled text box in C #

How to select text in a disabled text box?

+5
source share
3 answers

If you want to be able to select text, use the ReadOnlyattribute instead of disabling the control.

+10
source

Use readonlyinstead of turning it off.

+4
source

Remove the attribute enabled=falseand add it to your code:

 YourTextBox.Attributes.Add("readonly", "readonly");
0
source