proggR Posted March 9, 2009 Share Posted March 9, 2009 I can't seem to remember how to have an event handle me.close() in VB. For instance if I wanted to have a message box load when I'm closing to make sure the user wants to close, or if (and this is what I'm doing) I want to write a report in the event of the window being closed. I want it to work whether they click the x, hit alt-f4 or hit exit from the file menu. I know I have code with it being used somewhere, I just can't remember which program that was in. Any help would be much appreciated. In the meantime I'll just create a report button and get all that working for when I recall/get reminded how to handle close events. Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/148538-solved-visualbasic-close-event/ Share on other sites More sharing options...
proggR Posted March 9, 2009 Author Share Posted March 9, 2009 I remembered. The dropdown at the the top. FormEvents on the left list and FormClosing on the right. Quote Link to comment https://forums.phpfreaks.com/topic/148538-solved-visualbasic-close-event/#findComment-780084 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.