private void button4_Click(object sender, EventArgs e) { Form1 client = new Form1(); client.SocketClient(textBox1.Text, int.Parse(textBox4.Text)); client.StartClient(); client.Close(); }
public void 登录ToolStripMenuItem_Click(object sender, EventArgs e) { foreach (Form form1 in this.MdiChildren) { form1.Close(); } Form_Login formLogin = new Form_Login(); formLogin.MdiParent = this; formLogin.FormBorderStyle = FormBorderStyle.None; formLogin.Dock = DockStyle.Fill; formLogin.Show(); }
private void button2_Click(object sender, EventArgs e) { form1.Close(); this.Hide(); Application.Exit(); }