Displaying a message when closing
-
Hi, I need a little help. I am wanting a message such as "Do you really want to quit?" to be displayed when a user clicks the X (close button) in the corner of the form. I have tried some methods that just haven't worked, as I do not know how to make the Close(); function display a bool to then be used in an if statement. Any ideas? Thanks.
-
Hi, I need a little help. I am wanting a message such as "Do you really want to quit?" to be displayed when a user clicks the X (close button) in the corner of the form. I have tried some methods that just haven't worked, as I do not know how to make the Close(); function display a bool to then be used in an if statement. Any ideas? Thanks.
you can use the FormClosing event to check if the user really wants to close the window...
cellardoor
-
you can use the FormClosing event to check if the user really wants to close the window...
cellardoor