is there a way to run a piece of code if the user closes a form for example,
3 Forms, form1 = main, user clicks a button this happens
now if the user clicks the exit button in the top right hand corner, X, form2 closes and form1 freezes
I want to run a function (like:
Which loads before
but on exit, any help please?
3 Forms, form1 = main, user clicks a button this happens
Code:
form2.show
form1.enabled = false
now if the user clicks the exit button in the top right hand corner, X, form2 closes and form1 freezes
I want to run a function (like:
Code:
Private Sub Form_Activate()
End Sub
Which loads before
Code:
Private Sub Form_Load()
End Sub
but on exit, any help please?