private void cancelButton_Click(object sender, EventArgs e) { this.Hide(); StartForm Product = new StartForm(); Product.Show(); }
private void SelectAnotherButton_Click(object sender, EventArgs e) { StartForm startForm = new StartForm(); startForm.ShowDialog(); this.Hide(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); startForm = new StartForm(); mainForm = new BMICalculatorForm(); Application.Run(startForm); }
private void LoadingTimer_Tick(object sender, EventArgs e) { LoadingTimer.Enabled = false; StartForm startForm = new StartForm(); startForm.Show(); this.Hide(); }
private void SplashTimer_Tick(object sender, EventArgs e) { StartForm startForm = new StartForm(); this.SplashTimer.Enabled = false; startForm.Show(); this.Hide(); }
private void splashFormTimer_Tick(object sender, EventArgs e) { //1. intantiate StartForm selectionForm = new StartForm(); this.splashFormTimer.Enabled = false; selectionForm.Show(); this.Hide(); }
// go to next form private void timerSplash_Tick(object sender, EventArgs e) { timerSplash.Enabled = false; StartForm startForm = new StartForm(); this.Hide(); startForm.Show(); }
/// <summary> /// this method closes the splash form and opens the starform once the timer is up /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SplashFormTimer_Tick(object sender, EventArgs e) { StartForm startForm = new StartForm(); startForm.previousForm = this; //pass a referance to the current form to the next form this.SplashFormTimer.Enabled = false; startForm.Show(); this.Hide(); }