public Form1() { InitializeComponent(); radioButtonSplit.Checked = true; backgroundWorker1.DoWork += new DoWorkEventHandler(backgroundWorker1_DoWork); backgroundWorker1.RunWorkerCompleted += new RunWorkerCompletedEventHandler(backgroundWorker1_RunWorkerCompleted); Form1.CheckForIllegalCrossThreadCalls = false; ExcelHandlercs handler = new ExcelHandlercs(); handler.KillProcesses("EXCEL"); buttonLShowLog.Visible = true; }
private void Form1_FormClosing(object sender, FormClosingEventArgs e) { ExcelHandlercs handler = new ExcelHandlercs(); handler.KillProcesses("EXCEL"); }