Override close button
Posted
by
mmimaa
on Game Development
See other posts from Game Development
or by mmimaa
Published on 2012-06-21T17:57:00Z
Indexed on
2012/06/21
21:24 UTC
Read the original article
Hit count: 173
How can I override the close button near minimize/maximize in such a way that the application doesn't automatically close. I want it to show an exit screen or something like this, so I would like to be able to delay the close and display something on the screen when I press the red close button. At first I thought that I should override the OnExiting() method, but I couldn't get it working. This is my first attempt at creating a fully functional game, so I have no previous experience in game development nor with XNA.
© Game Development or respective owner