G
Guest
I have added this code in an attempt to prevent the user from closing my
simple 1 form application, but the application now prevents logout and
shutdown. What is the proper way to prevent a user from closing the app but
still have it close gracefully at shutdown/logoff?
Private Sub Form1_Closing(ByVal sender As Object, ByVal e As
System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
e.Cancel = True
End Sub
Thanks
simple 1 form application, but the application now prevents logout and
shutdown. What is the proper way to prevent a user from closing the app but
still have it close gracefully at shutdown/logoff?
Private Sub Form1_Closing(ByVal sender As Object, ByVal e As
System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
e.Cancel = True
End Sub
Thanks