Close control on a form 
Author Message
 Close control on a form

Hi

Does anyone know what event, if any, will fire when someone clicks on the
close control on a VB form instead of a "clean" exit via something like
this...

Private Sub mnuExit_Click()
  Unload frmMain
  Unload frmStatus
  End
End Sub

Thanks
Ken Nickels



Tue, 16 Nov 2004 23:02:19 GMT  
 Close control on a form
Hi Ken:

Quote:
> Does anyone know what event, if any, will fire when someone clicks on the
> close control on a VB form

The QueryUnload event -- you can check the UnloaMode to
see why the form is closing.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vb98...

Doug.



Tue, 16 Nov 2004 23:10:33 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Disabling Close (Control Panel) On Form

2. Tip : VB.NET Form Won't Close on Me.Close + User Controls

3. How to prevent user closing a mdi form using the close control button

4. Closing Form when WebBrowser control close

5. Forms, primary thread closing when closing startup form

6. Form Close Button Does Not Close the Form

7. Open form, close form, open form = disposed object exception

8. Prevent user from closing form using caption close button

9. Closing a form and closing Word

10. Form does not close from the UpperRight X Close button

11. Do I Find or Write the new Form Events (Activated,DeActivated,Closing,Closed)

12. problems using close [x] button when closing forms.

 

 
Powered by phpBB® Forum Software