private void btnClaerAll_Click(object sender, EventArgs e) { BackgroundWorker worker = new BackgroundWorker(); worker.WorkerSupportsCancellation = true; isRunning = new FrmIsRunning(worker); worker.DoWork += new DoWorkEventHandler(showIsRunning); worker.RunWorkerAsync(); isRunning.ShowDialog(); }
private void showDialog() { try { isRunning = new FrmIsRunning(); isRunning.ShowDialog(); } catch (Exception ex) { } }
//FrmIsRunning isRunning; private void showDialog() { try { FrmIsRunning isRunning = new FrmIsRunning(); isRunning.ShowDialog(); } catch (ThreadAbortException ex) { } catch (Exception ex) { } }
private void showDialog() { isRunning = new FrmIsRunning(); isRunning.ShowDialog(); }