Hi,
textBox1.Enabled=false;
textBox1.BackColor = Color.White;
textBox1.ReadOnly = true;
this should do the job, but hard to implement.
I recommend you to create a base Textbox class which overrides enabled property or has another property and executes the code above. After that inherit all your textboxes from this class.
"Joseph Geretz" <(E-Mail Removed)> wrote in message news:OiODDp$(E-Mail Removed)...
Hi Aaron,
We are using the standard VS GroupBox. Unfortunately, it does not provide
the ReadOnly property.
Thanks for your suggestion.
Joseph Geretz
"Aaron Moore" <(E-Mail Removed)> wrote in message
news:%23uJqGQ$(E-Mail Removed)...
> Does the group box have a "read-only" property that you can use? Alot of
> DevExpress controls have a read-only property that I use often...
>
> "Joseph Geretz" <(E-Mail Removed)> wrote in message
> news:u9feB1%(E-Mail Removed)...
>>I want to disable a whole group of controls, but I don't want to change
>>the UI appearance of these controls. I've placed all of these controls
>>onto a Group Box and so I can physically restrict access to the entire
>>group en masse by simply disabling the group box. When I do this, I'd like
>>the contained controls to remain visually unchanged.
>>
>> How can this be done?
>>
>> Thanks very much for your help!
>>
>> Joseph Geretz
>>
>
|