How to disable textbox but allow select & copy of text

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm sure there is an easy answer to this, but I just can't find it. Instead of totally disabling a textbox, I want to lock it so the user cannot change the value, but still allow them to copy the contents by selecting and ctrl-c, etc. I'm looking for the equivalent to the old "locked" property from VB6. How do I do this in C#.NET

thank
Robb
 
Hi,

The textbox has a readonly property

Ken
------------
rgilmore said:
I'm sure there is an easy answer to this, but I just can't find it.
Instead of totally disabling a textbox, I want to lock it so the user cannot
change the value, but still allow them to copy the contents by selecting and
ctrl-c, etc. I'm looking for the equivalent to the old "locked" property
from VB6. How do I do this in C#.NET?
 
Set ReadOnly to True

rgilmore said:
I'm sure there is an easy answer to this, but I just can't find it.
Instead of totally disabling a textbox, I want to lock it so the user cannot
change the value, but still allow them to copy the contents by selecting and
ctrl-c, etc. I'm looking for the equivalent to the old "locked" property
from VB6. How do I do this in C#.NET?
 
Back
Top