private void button1_Click(object sender, EventArgs e)
        {
            user = textName.Text;
            ip   = textIPC.Text;
            port = textPort.Text;
            Form_main f2 = new Form_main();

            this.Hide();
            f2.ShowDialog();
            this.Show();
        }
 private void button1_Click(object sender, EventArgs e)
 {
     user = textName.Text;
     if (user == string.Empty || user == "")
     {
         MessageBox.Show("Please Enter Your Name", "Warring", MessageBoxButtons.OK, MessageBoxIcon.Information);
         textName.Text = string.Empty;
     }
     else if (user != string.Empty)
     {
         /* ip = textIPC.Text;
          * port = textPort.Text;*/
         Form_main f2 = new Form_main();
         this.Hide();
         f2.ShowDialog();
         this.Close();
     }
 }