Link to home
Start Free TrialLog in
Avatar of davidw007
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
ASKER CERTIFIED SOLUTION
Avatar of Brian Mulder
Brian Mulder
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of davidw007
davidw007

ASKER

Thanks that makes sense.
David