c# - How to add design-time support for Enabled property in Winforms -


i've created winforms usercontrol (visual studio 2008, 3.5 framework sp1). i've been able create of own public properties visual studio able handle (i.e. form designer reacts changing property values).

i set enabled property checkbox control according enabled property of usercontrol. under usercontrol1.cs:

 `chkmycheckbox.enabled = enabled` 

i have tried putting both under enabledchanged event of usercontrol , overriding onenabledchanged method, neither seems catch. not toolbox caching issue (b/c can see other code changes taking effect).

thanks in advance, -alan.

the way control rendered @ design-time designers of control. core win32 controls not render disabled when in designer.


Comments

Popular posts from this blog

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -

jQuery clickable div with working mailto link inside -