Program Flow
-
dear my love ones,;P Say i have 2 buttons: btnDoSomeWork: implement taskX and btnTryAgain: allow user to hit btnDoSomeWork I run my program, and hit btnDoSomeWork , let it run taskX Now I hit btnTryAgain, take some new input, and have user click btnDoSomeWork the second time. This will make the 2 same taskX(s) run concurrently, which is not what i want. Is there anyway to stop the first taskX when i hit btnTryAgain? THANKS IN ADVANCE
-
dear my love ones,;P Say i have 2 buttons: btnDoSomeWork: implement taskX and btnTryAgain: allow user to hit btnDoSomeWork I run my program, and hit btnDoSomeWork , let it run taskX Now I hit btnTryAgain, take some new input, and have user click btnDoSomeWork the second time. This will make the 2 same taskX(s) run concurrently, which is not what i want. Is there anyway to stop the first taskX when i hit btnTryAgain? THANKS IN ADVANCE
Try running them in a separate thread. Then get the invoking method to abort the thread if it's running.
"Póg mo thóin!"
"I'm sorry but if they're gonna start talking to us about going to Uni and steering clear of drinking...then students bars shouldnt sell drinks for 50p"
Jonathan 'nonny' Newman Homepage [www.nonny.com] [^] Bob Chum Dev site [^]