Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
I have a windows app, and at one point in the code, if a condition is met, the application exits. However, I found that this was not the case, and noticed that Application.AllowQuit was set to false. What could be causing this?
"For every complex problem, there is a solution that is simple, neat, and wrong." - H. L. Mencken
  • 6 months later...
Posted
The only time I have seen Application.AllowQuit equal false is during form construction. If you handle the Load event on the form, you will see that the AllowQuit property is true and System.Windows.Forms.Application.Close() behaves how you might expect it to.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...