G
Guest
Why will the following code snippet run forever?
While(true)
{
if(MessageBox.Show("Exit now?","Close?") == DialogResult.OK)
{
Application.Exit();
}
}
How do you exit an application from within a While loop?
While(true)
{
if(MessageBox.Show("Exit now?","Close?") == DialogResult.OK)
{
Application.Exit();
}
}
How do you exit an application from within a While loop?