G
Guest
Hi,
i've this code
private void Esc_close_application_Click(object sender,
System.EventArgs e)
{
MessageBox.Show("Are you sure?", "Exit",
MessageBoxButtons.OKCancel);
if (OKButton clicked)
{
Application.Exit();
}
if/else(CancelButton clicked)
{
return to the application
}
}
how i write the codes in the if?
Thanks
i've this code
private void Esc_close_application_Click(object sender,
System.EventArgs e)
{
MessageBox.Show("Are you sure?", "Exit",
MessageBoxButtons.OKCancel);
if (OKButton clicked)
{
Application.Exit();
}
if/else(CancelButton clicked)
{
return to the application
}
}
how i write the codes in the if?
Thanks