Jump to content

Recommended Posts

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.