Hey,
I'm trying to add a MsgBox and a few other things when a user exists the program but I can't seem to find the event for the form.
I tried the "leave" form event but it's not working.
Any help?
What I tried and didn't work:
Code:Private Sub Form1_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Leave MsgBox("Bye!") End Sub




Reply With Quote