G
Guest
Greetings,
I have the following code (which displays a second form), but it is not
working as expected. I want to close the calling form after the dismissing
the second form. However, the second form never displays with the code I
have below. Any suggestions? [Note: I have also placed the code,
"frmMain.ActiveForm.Close();" in the "Click" event of the command button on
the second form, but this is not working either].
ActiveForm.Hide();
frmInstructions frmInstructions = new frmInstructions();
frmInstructions.Show();
ActiveForm.Close();
Thanks!
I have the following code (which displays a second form), but it is not
working as expected. I want to close the calling form after the dismissing
the second form. However, the second form never displays with the code I
have below. Any suggestions? [Note: I have also placed the code,
"frmMain.ActiveForm.Close();" in the "Click" event of the command button on
the second form, but this is not working either].
ActiveForm.Hide();
frmInstructions frmInstructions = new frmInstructions();
frmInstructions.Show();
ActiveForm.Close();
Thanks!