
Untitled
By: a guest on
May 25th, 2012 | syntax:
None | size: 0.60 KB | hits: 11 | expires: Never
How do I build a splash screen into a Windows Forms application without setting timers etc?
using Microsoft.VisualBasic.ApplicationServices;
public class Startup : WindowsFormsApplicationBase
{
protected override void OnCreateSplashScreen()
{
SplashScreen = new SplashForm();
}
protected override void OnCreateMainForm()
{
MainForm = new MyMainForm();
}
}
static class Program
{
static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
new Startup().Run(args);
}
}