Disabled controls not grayed out?

gblack

Registered User.
Local time
Today, 18:25
Joined
Sep 18, 2002
Messages
632
I am woking with a Form's textbox and I want to know if anyone knows a way to: disable the textbox, but have it (and its corresponding label) NOT be grayed out on the form (i.e. looking like all the rest of the controls, but with no tab stop and no way to click on it and no way change the data in it.

I'm not sure if this is the right place to ask (or if I should be in the forms section...), but I assume there might be some code associated with such an event... if it were even possible.

Thanks,
Gary
 
If you set Enabled to 'No', and Locked to 'Yes', then it loses the gray that a Enabled='No'/Locked='No' would have.

If you want it to be locked as well, you can manually change the backcolor, by copying the color value for the gray and pasting it in the backcolor property.
 
I think you can set enabled off and locked on to do what you need - ?
 
Thanks for the quick response!

Wow that worked beautifully and was far less painful than I imagined it would be:)

Thanks much!
G
 

Users who are viewing this thread

Back
Top Bottom