I have a custom form, B
. B
is created by A
, which has a handle to B.VisibleChanged
.
B
only has an OK and Cancel button on it, and I want to do some logic when OK is hit.
B
's OK button is dealt with like this:
Me.Result = Windows.Forms.DialogResult.OK
Me.Hide()
The code in A
is properly hit and run, but it never hides B
. When I check the values of the properties on B
, it shows me Visible = False
.
Does anyone have any suggestions as to the possible cause of this issue?
Edit
This form was shown using the Show()
command, as I'm making a later call to have the form flash using FlashWindow()
.