public void ok_Click(object sender, EventArgs e) { Form1 frm = new Form1(boxtext.Text, Zahl.Text); frm.ShowDialog(); frm.Close(); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { string n1 = "y"; string n2 = "y"; Form1 frm = new Form1(grad.Text, zahl.Text, n1, n2); frm.ShowDialog(); frm.Close(); this.Hide(); }