Windows Develop Bookmark and Share   
 index > Windows Forms Designer > grouped checkboxes
 

grouped checkboxes

Hi,

I am new to windows forms.
How can I have  6 checkboxes within a group at designtime?
and can I access state(checked or unchecked) of these checkboxes at run time using some parent control instead of checking all checkboxes one by one ?

CB=CheckBox

Select Pet

CB Dog
CB Cat
CB Parrot
CB Dove
...
...
...

THanks, 
MigrationUser 1  Tuesday, January 04, 2005 1:20 PM
Build a custom control


I built one that uses a panel as the container and add the check box, I also use a verb (that's the little linke that shows up in the property broswer) to setup how many check boxes I want and keep them in a CheckboxCollection property.

Though I rarely use this, but I did the same thing for a radio button collection and it works great, I always wondered why there wasn't some easy way to bind many radio buttons and set the value of a single datacolumn of a row based on which radio button was checked (filled). Plus have that value different for each one, much like how one would do a combobox but with radio buttons.

Check out 
www.syncfusion.com/FAQ/WinForms/ 
For all your custom winforms needs, great site (when it's up).
MigrationUser 1  Wednesday, January 19, 2005 10:33 AM

You can use google to search for other answers

Custom Search

More Threads

• Controls position on window resizings...
• Visual studio designer resizing anchored controls
• Assign a Char* to Label
• How to get a Visio Like Design Area?
• Non-Primary Monitors, Rotated Monitors & Invalidate / Paint / StretchBlt
• How to create a Multicolumn ComboBox in VB.Net?
• New Button Design VB Express
• How to add and read the data in a ListBox of MDI Windows Form project with 1 "Parent" & 2 "Child" Forms with 2 Classes?
• Event Handling query
• Cut & Paste