private void button3_Click(object sender, EventArgs e) { Application.Exit(); Application.ExitThread(); }
private void frmMain_FormClosed(object sender, FormClosedEventArgs e) { Application.ExitThread(); Application.Exit(); }