Hi there
I have a form that is opened within a panel on another form. When the user wants to close the form down they click the X button on the outter form. However on the inner form I have some code that checks if its ok to close the form that runs as below...
Private Sub Form_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
If check(Me) = False Then
e.Cancel = True
Else
e.Cancel = False
End If
End Sub
If I am cancelling out of the form close event on the inner form - how can I stop the outter form closing aswell?
Hope you can help!!!
Our community of experts have been thoroughly vetted for their expertise and industry experience.