I have a little problem. I made small game(main window - dungeons) and splash screen. At first made main window, next added splash screen. When run my game at first show splash screen, next main window, but if splash screen close, the main window start, but it is minimalized (visible in taskbar only). How to do to after splash screen the main window visible? Below code main window. Thanks you for help.
public Dungeons()
{
Thread thread = new Thread(new ThreadStart(SplashStart));
thread.Start();
Thread.Sleep(5000);
InitializeComponent();
this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint |
ControlStyles.OptimizedDoubleBuffer, true);
player30.Visible = true;
CenterToScreen();
thread.Abort();
}
public void SplashStart()
{
Application.Run(new SplashScreen());
}