I have the following code when I am showing a form...
Form1's
Private Sub btn1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Handles btn1.Click
Form2 = new Form2()
Form2.Owner = Me
Form2.Show()
End Sub
In that Form2s close event.. I have code to show a message box when they
close without saving...
Public Form2_Closing(ByVal sender As Object, ByVal e As
System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
If FileNotSaved() Then
MessageBox("Do you wish to save?", MsgBoxStyle.Exclamation +
MsgBoxStyle.YesNo, "Test")
End Sub
End Sub
Now if I close the Form1. The Form2's close event does not fire, What
different should I do?
Thanks
VJ