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