R
r
I'm doing a robotics experiment in which I have a GUI with 2 buttons. One
button is forward! and the other is reverse!.
The event handler code for each button contains a while loop that will
deliver a timed pulse to a data output on the parallel port which in turn
will run a stepper motor.
The problem is that once in the while loop, the program will no longer
respond to button clicks. I have tried applications.DoEvents() but I really
need a way to break the loop when the user clicks the other button. I think
I need to raise an event and then check for it inside the loop. If this
would work can someone supply a code snippet?
Thanks,
Roger
button is forward! and the other is reverse!.
The event handler code for each button contains a while loop that will
deliver a timed pulse to a data output on the parallel port which in turn
will run a stepper motor.
The problem is that once in the while loop, the program will no longer
respond to button clicks. I have tried applications.DoEvents() but I really
need a way to break the loop when the user clicks the other button. I think
I need to raise an event and then check for it inside the loop. If this
would work can someone supply a code snippet?
Thanks,
Roger