Hello
guy
Today we learn how to write a letter comparing the exit yes or no.....
كود
private void button1_Click(object sender, EventArgs e)
{
DialogResult reply = MessageBox.Show("Do you want to get out....", "The Exit", MessageBoxButtons.YesNo, MessageBoxIcon.Stop);
if (reply == DialogResult.Yes)
Application.Exit();
}
{
DialogResult reply = MessageBox.Show("Do you want to get out....", "The Exit", MessageBoxButtons.YesNo, MessageBoxIcon.Stop);
if (reply == DialogResult.Yes)
Application.Exit();
}