include the following line of code
AddHandler Application.ApplicationExit, AddressOf OnApplicationExit
Include another method in the application as follows
VB:
Private Sub OnApplicationExit(ByVal sender As Object, ByVal e As EventArgs)C#:
'your code here.
End Sub
private void OnApplicationExit(object sender, EventArgs e) {
// Your code here.
}
No comments:
Post a Comment