control box on form
Visual Basic
2
Posts
2
Posters
0
Views
1
Watching
-
Does clicking on the close button in the control box on a form raise an event? I would like the code I have for exiting using a menu to be executed if the close on the control box is clicked. Any ideas?
well you can handle this in queryunload event. It gives you an idea from where the unload event has been called. I think rest is upto your logic. You can call the menu's click function. Or the better way is to create a common function and call it from different events. Hope that is what you are looking for. Ritesh.