473,387 Members | 1,611 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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
Jun 16 '06 #1
6 4903

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.

Jun 16 '06 #2
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
"Annie" <my**************@gmail.com> wrote in message
news:44********@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
|
|
Jun 16 '06 #3
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" <my**************@gmail.com> schreef in bericht
news:44********@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

Jun 16 '06 #4
I agree with Cor. Having checkboxes with this behavior is highly unusual,
and does not follow standards in UI design.

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:OU**************@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" <my**************@gmail.com> schreef in bericht
news:44********@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


Jun 16 '06 #5

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]" <no************@planet.nl> wrote in message
news:OU**************@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" <my**************@gmail.com> schreef in bericht
news:44********@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. :-)

Jun 16 '06 #6
guy
tell the users how much extra checkboxes will cost them over radio buttons -
that should convince them!

"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]" <no************@planet.nl> wrote in message
news:OU**************@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" <my**************@gmail.com> schreef in bericht
news:44********@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. :-)

Jun 18 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Phil Powell | last post by:
I am producing a form using PHP on the back end and Javascript on the front end. The resulting script will come to the browser as follows: <script> <!-- function selectAll() { moveElement =...
4
by: Bill | last post by:
I have a catalog of books which need to be categorized into different groups. Some of the books can be listed under more than one category. I'm creating a page where I can assign a group of books...
2
by: Fred | last post by:
Hi, I defined a form consisting of checkboxes like: <form> <input type="checkbox" name=ck id=ck onclick="check(this.form)" <input type="checkbox" name=ck id=ck onclick="check(this.form)" ........
4
by: Robin Tucker | last post by:
Hi, I'm trying to determine with my program whether or not a given database supports a given feature set. To do this I'm querying for certain stored procedures in the sysobjects table and if...
2
by: Anthony LaMark | last post by:
Hi All, I am generating a (X)HTML page in an IE webbrowser control (housed by a .Net WinForm application) from a XML file using XSLT (using Msxml2.DOMDocument.4.0). When the user clicks a...
3
by: rodrigo guerra | last post by:
i have a checkbox and a dropdownlist in 2 templatecolumns in a datagrid. how can i add a onClick/CheckedChanged event handler to a checkbox in the datagrid ? i want to enable a dropdownlist...
6
by: William F. Kinsley | last post by:
I am thinking of porting an existing MFC application to MC++ and I have created a simple MFC application to test the environment. My sample MFC application is compilied with the /clr switch. I...
3
by: Gordon | last post by:
Hi; Can you add a column of button controls to a winform datagrid ? I have a form with three independant grids. I would like to add buttons i.e. update, add buttons at the end of each row....
6
by: Chuck Anderson | last post by:
My knowledge of JavaScript is limited. I learn from example and then adapt those examples to suit my needs. I have stumped myself on this one. I have a form with checkboxes that I want to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.