Checkboxes in C#

  • Thread starter Thread starter Jim
  • Start date Start date
J

Jim

Im trying to create 2 check boxes, but only one can be checked at a
time or none can be checked..

I know radio buttons are used for this functionality but I need to be
able to unchecked them as well so that neither are checked...any
ideas?

thanks

-Jim
 
Jim said:
Im trying to create 2 check boxes, but only one can be checked at a
time or none can be checked..

I know radio buttons are used for this functionality but I need to be
able to unchecked them as well so that neither are checked...any
ideas?

Could you post a short but complete program which demonstrates the
problem?

See http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that.
 
sure, in the checked event of each check box, do the following logic

If the current box is checked, uncheck the other.

That way, you can never have both checked, but you can have both unchecked.

It's fairly simple, really.

--- Nick
 
Back
Top