protected override void OnFormClosing(FormClosingEventArgs e) { //Stop the socket before closing the application client.Close(); base.OnFormClosing(e); Application.Exit(); }
protected override void OnFormClosing(FormClosingEventArgs e) { client.Close(); base.OnFormClosing(e); Application.Exit(); }