When we fill our checkbox of our vb6 form when loading, the events are trigger and all the instructions of the event begins.
The code is for when a user checks on it, it saves to a table:
Private Sub Form_Load()
check1.value=sql value saved previously
Private Sub check1_Click()
sql instruction save the state of the variable...
However, before the screen is display, we read the table and set the checkbox according of what has been saved previously. This trigger the "click" events and freezes the apps.
How can we set the checkbox without triggering the events?