Beispiel #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (txtNickname.Text == "")
     {
         MessageBox.Show("Nick name is empty");
     }
     else
     {
         ClientChat client = new ClientChat(txtNickname.Text);
         client.FormClosed += Client_FormClosed;
         this.Hide();
         client.Show();
     }
 }