Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Select text in a disabled textbox in C#

Tags:

c#

textbox

How do I select the text in a disabled textbox?

like image 289
Filipe Galvao Avatar asked Jul 09 '12 17:07

Filipe Galvao


2 Answers

If you want to be able to Select the Text, use ReadOnly attribute instead of disabling the control.

like image 53
Francis P Avatar answered Nov 12 '22 07:11

Francis P


Use readonly instead of disabling it.

like image 26
lc. Avatar answered Nov 12 '22 09:11

lc.