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

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -