views:

23

answers:

1

I need to set appearance of a control to make it look like disabled control with grayed text and background. Is it possible to imitate disabled appearance of some control (for example of a button)? The appearance should be exactly the same as when I'm setting the 'Enabled' property to false.

A: 

Control.Enabled=false and then change the foreground color and all

Pramodh
The idea was to change appearance to disabled, but control should remained enabled and could respond to events.
username
ok then do not disable the control`Control.Enabled= true` just change the appearence using background , foreground color proprties
Pramodh