private void SplashTimer_Tick(object sender, EventArgs e) { this.Hide(); StartForm StartForm = new StartForm(); StartForm.Show(); SplashTimer.Enabled = false; }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); SplashForm = new SplashForm(); StartForm = new StartForm(); Select = new Select(); About = new About(); ProductInfo = new ProductInfo(); Order = new Order(); product = new product(); Information = new Information(); Application.Run(new SplashForm()); }
void SplashTimer_Tick(object sender, EventArgs e) { //after 3 sec stop the timer SplashTimer.Stop(); //display mainform StartForm mf = new StartForm(); mf.Show(); //hide this form this.Hide(); }