private void button2_Click(object sender, EventArgs e) { if (!(textBox1.Text == "")) { Form20 f = new Form20(); this.Hide(); f.ShowDialog(); Close(); } else { MessageBox.Show("Вы не ответили на вопрос", "Заголовок", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void button10_Click(object sender, EventArgs e) { Form20 f = new Form20(); f.ShowDialog(); }