private void button1_Click(object sender, EventArgs e) { Form2 a = new Form2(); a.Show(this); }
private void server_Click(object sender, EventArgs e) { child = new Form2(ip.Text, port.Text); child.ShowDialog(); }