Does vb.net winform supports checkbox groups?

A

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
 
J

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


| 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
|
|
 
Z

zacks

Annie said:
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.
 
C

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
 
M

Marina Levit [MVP]

I agree with Cor. Having checkboxes with this behavior is highly unusual,
and does not follow standards in UI design.
 
Z

zacks

Marina said:
I agree with Cor. Having checkboxes with this behavior is highly unusual,
and does not follow standards in UI design.

But as the OP said, the users want square boxes to click in, not round
ones. :)
 
G

Guest

tell the users how much extra checkboxes will cost them over radio buttons -
that should convince them!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top