Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21090

Is it possible to stop the form from unloading in the Form_Unload procedure?

$
0
0
With reference to the form I'm designing, when the Form_Unload event occurs (or rather, when the Close (X) button is pressed), a message box appears with the options OK and Cancel. If the user chooses to press Cancel, I want the form to keep running. That is, I'd like to prevent the unload event from happening. Can it be done? I'd appreciate your suggestions.

Viewing all articles
Browse latest Browse all 21090

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>