|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Does vb.net winform supports checkbox groups?hello guys,
I have a number of checkbox contorls all together (I don't want option buttons - users request) ... I just want the users be able to select only one of the checkboxes ... if a checkbox is selected and the users select another one it should decheck the selected one and check the other .... Is it possible in vb.net to group them? Any suggestions will be appreciated ... Thanks Annie,
Only way I know of how to do that is manually with code. -- Show quoteHide quoteHope this helps Jay B. Harlow [MVP - Outlook] ..NET Application Architect, Enthusiast, & Evangelist T.S. Bradley - http://www.tsbradley.net "Annie" <myjunksandfor***@gmail.com> wrote in message news:4492a11e$1@dnews.tpgi.com.au... | hello guys, | | I have a number of checkbox contorls all together (I don't want option | buttons - users request) ... I just want | the users be able to select only one of the checkboxes ... if a checkbox is | selected and the users | select another one it should decheck the selected one and check the other | ... | | Is it possible in vb.net to group them? | | Any suggestions will be appreciated ... | | Thanks | | Annie wrote:
> hello guys, I assume you have gone through the available properties and verified> > I have a number of checkbox contorls all together (I don't want option > buttons - users request) ... I just want > the users be able to select only one of the checkboxes ... if a checkbox is > selected and the users > select another one it should decheck the selected one and check the other > ... > > Is it possible in vb.net to group them? that there is not one that does what you want, I have never looked. But at the very least you should be able to emulate this behaviour with the CheckedChanged events for all of the check boxes you want to group together. Arnie,
The name for this is an radiobutton. It derives form the same class as the checkbox. If you put them in a container as a groupbox than you have exact the behaviour as you describe. (And it wont make a user crazy, because the behaviour you describe is from a radiobutton while a checkbox should not do that) :-) I hope this helps,Cor Show quoteHide quote "Annie" <myjunksandfor***@gmail.com> schreef in bericht news:4492a11e$1@dnews.tpgi.com.au... > hello guys, > > I have a number of checkbox contorls all together (I don't want option > buttons - users request) ... I just want > the users be able to select only one of the checkboxes ... if a checkbox > is selected and the users > select another one it should decheck the selected one and check the other > ... > > Is it possible in vb.net to group them? > > Any suggestions will be appreciated ... > > Thanks > > I agree with Cor. Having checkboxes with this behavior is highly unusual,
and does not follow standards in UI design. Show quoteHide quote "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message news:OUqgR3UkGHA.3588@TK2MSFTNGP02.phx.gbl... > Arnie, > > The name for this is an radiobutton. It derives form the same class as the > checkbox. > If you put them in a container as a groupbox than you have exact the > behaviour as you describe. > > (And it wont make a user crazy, because the behaviour you describe is from > a radiobutton while a checkbox should not do that) > > :-) > > I hope this helps, > > Cor > > "Annie" <myjunksandfor***@gmail.com> schreef in bericht > news:4492a11e$1@dnews.tpgi.com.au... >> hello guys, >> >> I have a number of checkbox contorls all together (I don't want option >> buttons - users request) ... I just want >> the users be able to select only one of the checkboxes ... if a checkbox >> is selected and the users >> select another one it should decheck the selected one and check the other >> ... >> >> Is it possible in vb.net to group them? >> >> Any suggestions will be appreciated ... >> >> Thanks >> >> > > Marina Levit [MVP] wrote:
Show quoteHide quote > I agree with Cor. Having checkboxes with this behavior is highly unusual, But as the OP said, the users want square boxes to click in, not round> and does not follow standards in UI design. > > "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message > news:OUqgR3UkGHA.3588@TK2MSFTNGP02.phx.gbl... > > Arnie, > > > > The name for this is an radiobutton. It derives form the same class as the > > checkbox. > > If you put them in a container as a groupbox than you have exact the > > behaviour as you describe. > > > > (And it wont make a user crazy, because the behaviour you describe is from > > a radiobutton while a checkbox should not do that) > > > > :-) > > > > I hope this helps, > > > > Cor > > > > "Annie" <myjunksandfor***@gmail.com> schreef in bericht > > news:4492a11e$1@dnews.tpgi.com.au... > >> hello guys, > >> > >> I have a number of checkbox contorls all together (I don't want option > >> buttons - users request) ... I just want > >> the users be able to select only one of the checkboxes ... if a checkbox > >> is selected and the users > >> select another one it should decheck the selected one and check the other > >> ... > >> > >> Is it possible in vb.net to group them? > >> > >> Any suggestions will be appreciated ... > >> > >> Thanks > >> ones. :-) tell the users how much extra checkboxes will cost them over radio buttons -
that should convince them! Show quoteHide quote "za***@construction-imaging.com" wrote: > > Marina Levit [MVP] wrote: > > I agree with Cor. Having checkboxes with this behavior is highly unusual, > > and does not follow standards in UI design. > > > > "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message > > news:OUqgR3UkGHA.3588@TK2MSFTNGP02.phx.gbl... > > > Arnie, > > > > > > The name for this is an radiobutton. It derives form the same class as the > > > checkbox. > > > If you put them in a container as a groupbox than you have exact the > > > behaviour as you describe. > > > > > > (And it wont make a user crazy, because the behaviour you describe is from > > > a radiobutton while a checkbox should not do that) > > > > > > :-) > > > > > > I hope this helps, > > > > > > Cor > > > > > > "Annie" <myjunksandfor***@gmail.com> schreef in bericht > > > news:4492a11e$1@dnews.tpgi.com.au... > > >> hello guys, > > >> > > >> I have a number of checkbox contorls all together (I don't want option > > >> buttons - users request) ... I just want > > >> the users be able to select only one of the checkboxes ... if a checkbox > > >> is selected and the users > > >> select another one it should decheck the selected one and check the other > > >> ... > > >> > > >> Is it possible in vb.net to group them? > > >> > > >> Any suggestions will be appreciated ... > > >> > > >> Thanks > > >> > > But as the OP said, the users want square boxes to click in, not round > ones. :-) > >
Label Autosize Property... Possible bug??
urgent! dataset updation in wrong row Writing a byte to a specific location in a file I don't get this --> Make Thread-Safe Calls to Windows Forms Controls VB and VB.NET Exception.ToString() VB 2005 OOP Videos Wizard for UserControl Adding text to a jpeg file Adding Image to Device Context |
|||||||||||||||||||||||