Have a form with two button, when i click on start button the resumable sub start, but if i click on stop button how i do for stopping the resumable sub ?
Sub ThisIsAResumableSub
Dim MyIndex As Int = WorkIndex 'process global variable
Do While True
'do something
Sleep(...)
If MyIndex <> WorkIndex Then Exit
Loop