DialogResult dr = MessageBox.Show("你确定要点击吗", "安全提示", MessageBoxButtons.YesNo);
if (dr == DialogResult.Yes)
{
this.Close();
}
else
{
MessageBox.Show("我好想睡觉啊");
}
Form2 form = new Form2();
form.Show();
this.Hide();