Home All Groups Group Topic Archive Search About

Does vb.net winform supports checkbox groups?

Author
16 Jun 2006 12:11 PM
Annie
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

Author
16 Jun 2006 12:21 PM
Jay B. Harlow [MVP - Outlook]
Annie,
Only way I know of how to do that is manually with code.

--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net


Show quoteHide quote
"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
|
|
Author
16 Jun 2006 12:25 PM
zacks
Annie wrote:
> 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?

I assume you have gone through the available properties and verified
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.
Author
16 Jun 2006 2:06 PM
Cor Ligthert [MVP]
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
>
>
Author
16 Jun 2006 3:30 PM
Marina Levit [MVP]
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
>>
>>
>
>
Author
16 Jun 2006 8:27 PM
zacks
Marina Levit [MVP] wrote:
Show quoteHide quote
> 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. :-)
Author
18 Jun 2006 10:37 AM
guy
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. :-)
>
>