Form.Hide() Form.Show() Problem
C#
2
Posts
2
Posters
0
Views
1
Watching
-
I have 2 forms. The application enters on frmMain. Then I want to show frmSetup and hide frmMain. it seems pretty straight forward, but i can not get frmMain to hide.
FormSetup frmSetup = new FormSetup(); frmSetup.Show(); frmMain.Hide();
is there anything i'm missing here? -
I have 2 forms. The application enters on frmMain. Then I want to show frmSetup and hide frmMain. it seems pretty straight forward, but i can not get frmMain to hide.
FormSetup frmSetup = new FormSetup(); frmSetup.Show(); frmMain.Hide();
is there anything i'm missing here?Is that code placed in frmMain_Load? .NET shows a form after calling the Load-event, so hiding a form on load is ignored.