Consider the following:
frmSecond contains a "Cancel" button which sets appCancelled to "True". When the program runs, " Cancelled" is displayed by the MessageBox and appCancelled is in fact "True" but program falls right through. Replacinng Me.Close with End works fine but I don't like doing it this way!
Help/suggestions eagerly solicited!
Code:
Me.Hide()
frmSecond.ShowDialog()
If appCancelled Then
MessageBox.Show("Cancelled!")
Me.Close()
End If
Help/suggestions eagerly solicited!
Comment