prettitoni
Programmer
Hi there. I need to intercept a call to Shutdown or Log Off thru a VB6 application. I found this code, but it doesn't appear to work:
Code:
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
If UnloadMode = vbAppWindows Then
'Windows is shutting down; put code here
End If
End Sub