In VB6 I have a checkbox and it seems that state of the checkbox (checked or not) has not changed when the MouseDown event fires but has changed when the MouseUp event fires.
I have a situation in which I need the original state of the checkbox to correctly save some data (a SAVE routing in the MouseDown event) and the new state of the checkbox to retreive some new data (a LOAD routine in the MouseUp event).
I seem to be running in to a timing issue. During the save of data can the MouseUp event occur thus changing what happens in my save routine? Can the state of the checkbox change while I am executing my save routine?
In other words if I have a checkbox and a SAVE routing and LOAD routine, what is the exact sequence of events when one clicks on the checkbox?
Is it, for example:
MouseDown Eevent Fires
SAVE routine executed
MouseUp event fires
LOAD routine executed?
Does the sequence depend on the time it take the SAVE or LOAD routine to execute?
This seems pretty basic but I am getting tangled up somewhere so I hope someone understands what I am trying to sort out here. Thanks for any help you can offer.
David Abineri
I have a situation in which I need the original state of the checkbox to correctly save some data (a SAVE routing in the MouseDown event) and the new state of the checkbox to retreive some new data (a LOAD routine in the MouseUp event).
I seem to be running in to a timing issue. During the save of data can the MouseUp event occur thus changing what happens in my save routine? Can the state of the checkbox change while I am executing my save routine?
In other words if I have a checkbox and a SAVE routing and LOAD routine, what is the exact sequence of events when one clicks on the checkbox?
Is it, for example:
MouseDown Eevent Fires
SAVE routine executed
MouseUp event fires
LOAD routine executed?
Does the sequence depend on the time it take the SAVE or LOAD routine to execute?
This seems pretty basic but I am getting tangled up somewhere so I hope someone understands what I am trying to sort out here. Thanks for any help you can offer.
David Abineri