ill save it here... hehe
how to prevent the unloading of forms (if the user clicked
on the X button or pressed ALT+F4), here's how. =)
1. Use the QueryUnload( ) event procedure.
2. The first argument of QueryUnload, Cancel,
determines whether or not the form will be
unloaded or not. Assign False to Cancel variable
once the user has decided to Cancel the action.
Private Sub Form_QueryUnload
Dim nResult As Integer

Cancel = True
End If
End Sub
1. Use the Closing() event procedure.
2. The second argument of Closing(), e,
can determine whether or not the form will be
unloaded or not. Assign False to Cancel member of e
once the user has decided to Cancel the action.
Private Sub Form1_Closing
(
ByVal sender As Object,
ByVal e As System.ComponentMod el.CancelEventAr gs
) Handles MyBase.Closing

e.Cancel = True
End If
End Sub
or clarifications.
Ms. Cath

