Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
End Sub
You can get the code for the event in VS.NET by going to the code view, from the object dropdown on the top left of the code editor select FormName Events and then from the combo to the right select the event, it will automatically add the code for you.