Windows Develop Bookmark and Share   
 index > Windows Forms General > How to bind control state to another control state
 

How to bind control state to another control state

Hi,

Let's say I have a checkbox and a groupbox. I'd like to achieve that the visibilty of the groupbox would depend on the checked state of the checkbox. Can I bind them together somehow? I know I can do it with event handlers but eventually I need to do it with many pairs, so I have to parse all the groupboxes instead of setting one's visibility. It could be that my question makes no sense but I hope, you can advice me something.

nologin  Tuesday, September 25, 2007 10:59 AM
Derive your own class from CheckBox and add a "GroupBox" property. Assign the property in the form's constructor.
nobugz  Tuesday, September 25, 2007 11:40 AM
Derive your own class from CheckBox and add a "GroupBox" property. Assign the property in the form's constructor.
nobugz  Tuesday, September 25, 2007 11:40 AM

You can use google to search for other answers

Custom Search

More Threads

• UseWaitCursor not working but Cursor = Cursors.WaitCursor does...
• MdiChildActivate Form Closing Event
• Verify Dataset Read
• StatusStrip on MDi Form
• Get USerProfileName
• why is it my form 2 could not be found?
• Issues with GDI+ and Citrix?
• Form size - odd behaviour
• cannot show a popup form in xp, but work in win2k
• OwnerDrawFixed listBox problem