davidw007
asked on
Making a stop button stop the routine.
Hi
I am using VC#.
On the main form I have a start button which calls a routine to start taking voltage measurments and displays the measured data. The full test can take several hours. I need to have another button on the form, STOP, to stop this routine at any stage.
I have tried adding a button but when the main routine starts the stop button has no affect, the code here never gets called.
How can I structure the program so that the buttons on the form still work.
David
I am using VC#.
On the main form I have a start button which calls a routine to start taking voltage measurments and displays the measured data. The full test can take several hours. I need to have another button on the form, STOP, to stop this routine at any stage.
I have tried adding a button but when the main routine starts the stop button has no affect, the code here never gets called.
How can I structure the program so that the buttons on the form still work.
David
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
David