private void exitEToolStripMenuItem_Click(object sender, EventArgs e) { if (tCPClient != null) { tCPClient.stopClient(); } Application.Exit(); }