i have 1 function called sync() in which i'm synching 4 tables table1,table2 table3 and table4. while i'm synchining this progress bar must run. I have a 1 cancel button when i cancel it.It must stop at that movement.
But in my case when syncing and progress bar started ,it freezed the whole application and I was unable to click on cancel button
Plz help me i have spend 3 to 4 weeks to solve this problem. but still i have not got any result.
I have used thread and backgroundWorker but didn't get good result