How to Prevent Form from being Unloaded
Posted on January 5, 2009
1 2 3 4 5 6 7 | 'Forms - How to Prevent Form from being Unloaded Option Explicit Private Sub Form_Unload(Cancel As Integer) Cancel = 1 End Sub |
Related posts:
- How to find out how the form is unloading
- How to find the user is trying to close the application using task manager or by pressing the X in Title bar, etc. How to restrict/refuse that
- How to Limit Cursor Movement to Form Boundaries
- How to check whether a Form is already loaded
- How to Confine a Form to another Form
- How to select back color of your form in run time using Common Dialog
- How to Prevent the user from entering invalid keys in a text box.
- How to Disable all Forms till the Form is closed
- How to Drag files from Windows Explorer to a form and get their full path
- How to make text on a form scroll upward.