CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 1999
    Posts
    3

    How to URGENT::uncheck the checkboxes

    I've two checkboxes in an applet, along with the reset button. User can check either checkbox, and should be able to uncheck(reset everything) the checkbox by clicking Reset button. Eventhough I've code checkbox1.setState(false) and Checkbox2.setState(false), the applet still shows the previously checked mark on the checkbox. How can I refresh the screen???
    Please help me.
    Thanks.


  2. #2
    Join Date
    Jun 1999
    Posts
    22

    Re: How to URGENT::uncheck the checkboxes

    Just refresh the Control it self
    u can do a Checkbox1.refresh it works cause it has been used b4.
    goodluck thou!!

    "I think I am - therefore I am"

  3. #3
    Guest

    Re: How to URGENT::uncheck the checkboxes

    I tried to use checkbox.refresh(); and it spit out an error saying that refresh is not a defined method for class checkbox.


  4. #4
    Join Date
    Jun 1999
    Posts
    22

    Re: How to URGENT::uncheck the checkboxes

    Okay Hold on I will find it and send u a solution asap.....okay
    Peace....

    "I think I am - therefore I am"

  5. #5
    Join Date
    Jun 1999
    Location
    Atlanta, GA
    Posts
    57

    Re: How to URGENT::uncheck the checkboxes


    Component yourComp // in your case checkbox
    yourComp.invalidate();
    yourComp.repaint();





    Meher

  6. #6
    Join Date
    Sep 1999
    Posts
    3

    Re: How to URGENT::uncheck the checkboxes

    I've found the solution to this, which is as follows.

    CheckBoxGroup.setSelectedCheckbox(null);

    Thanks to all the responses to this problem.
    Wasim Muhammad


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