CodeItBetter Programming Another VB Programming Blog

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:

  1. How to find out how the form is unloading
  2. 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
  3. How to Limit Cursor Movement to Form Boundaries
  4. How to check whether a Form is already loaded
  5. How to Confine a Form to another Form
  6. How to select back color of your form in run time using Common Dialog
  7. How to Prevent the user from entering invalid keys in a text box.
  8. How to Disable all Forms till the Form is closed
  9. How to Drag files from Windows Explorer to a form and get their full path
  10. How to make text on a form scroll upward.

Filed under: Forms Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.