Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ckeck Box click event

Status
Not open for further replies.

smanuel

IS-IT--Management
May 15, 2000
15
CA
Is there a way to change the value in code of a check box without having it call the click event?

I have an array of check boxes that add a record in a database when you click that box. When I change the value in code (say in the form_load to see which boxes have the corresponding records in the database) it calls the click event and tries to add another record.

Any help is appreciated.
 
tried that, still calls the click event :(
 
Thanks for the help. I got it workig. I declared a global boolean variable and had the click_event code check to see if it was false, if so, it didn't run the code. When the form was loaded, the variable was set to true so that it would run the code if someone click the check box.

Maybe this could help someone else sometime too :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top