C# coding
-
hi, id like to know how to code for a button on a splash window, the button is an ok button..when clicked opens the main menu window...at this moment i've done this : private button OK_CLICK (and so on......) { Application.Run(new MainMenu()); } but this code is giving me errors.. is there any other way...the correct way....im new to C#... thx alot 15 Yr old
-
hi, id like to know how to code for a button on a splash window, the button is an ok button..when clicked opens the main menu window...at this moment i've done this : private button OK_CLICK (and so on......) { Application.Run(new MainMenu()); } but this code is giving me errors.. is there any other way...the correct way....im new to C#... thx alot 15 Yr old
If your splash dialog is started by a Main routine, and your MainMenu is just a form, then you should code your button like this:
MainMenu mm = new MainMenu(this); mm.ShowDialog();
the MainMenu will then be displayed as a modal dialog (i.e. the user can't interact with the original dialog -the splash screen- until (s)he closes the MainMenu). I'm not sure how you can then close the splash form, but that's a start, I hope. F.O.R.