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. 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. Link to comment https://forums.phpfreaks.com/topic/148538-solved-visualbasic-close-event/#findComment-780084 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.