Currently What i have did is,
1. Declaring a shared boolean variable on Main Form. When pause is clicked, i change value there.
2. Adding a function to check if pause = true, if its true then starting a endless loop
like this.
While pause
end while
this is done in my worker class. so it doesnt hangs up UI. is this correct way?





Reply With Quote