CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: check box

  1. #1
    Join Date
    May 2001
    Location
    MO, USA
    Posts
    87

    check box

    is there a way to make a check box act like an option box....i know why not use option box's well the program is almost done and i placed a lot of check box's on it and now i only want to allow one box at a time not multiple choices.


    thanx

    midnightservice


  2. #2
    Join Date
    Apr 2000
    Location
    Mesa, AZ
    Posts
    189

    Re: check box

    I think you have to put your controls in an option group control to get them to work this way.

    I will rate all useful suggestions

    In reply to:

    A man who asks a question is a fool for 15 minutes. A man who doesn't ask a question is a fool for a lifetime. -Chinese Proverb




    Karok

  3. #3
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: check box

    You might consider developing a subroutine that has a parameter of the checkbox just clicked. IN that subroutine uncheck all the other checkboxes.
    Call this subroutine from the CheckBox.Validate routine of each of the checkboxes passing the name of the checkbox just checked to the Subroutine.

    John G

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured