Hello there... Why do you think that when you press the button you are not interrupting the rest of the program??
Sorry to say this, but unless you are using another thread and you are lucky to be using several processors (things that don't happens in windows) you are interrupting the original code. You maybe don't notice that, but you are interrupting it.
Explained that, your point is that you press and the program continues from it is. But somewhere you are catching events.
Anyway you can achieve the exact same behavior with a timer. You set the timer to a specific interval, and then you simulate the press calling the same procedure that drive the click event.
__________________
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the proof.
================================================== =========
|