Application.Exit(); not working when backgroundWorker.IsBusy!
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Can you please tell me why is that and how can I solve it?
if (backgroundWorker.IsBusy) System.Diagnostics.Process.GetCurrentProcess().Kill(); Application.Exit();
Does the work, but I have a feeling that this is not a proper way to do it! Please help. Thank you in advance. -
Can you please tell me why is that and how can I solve it?
if (backgroundWorker.IsBusy) System.Diagnostics.Process.GetCurrentProcess().Kill(); Application.Exit();
Does the work, but I have a feeling that this is not a proper way to do it! Please help. Thank you in advance.hi, try using this.dispose() instead of Application.Exit() hope it helps jamil abou khlail