private void TheNextButton_Click(object sender, EventArgs e) { TheNextButton.Enabled = true; EndForm endForm = new EndForm(); endForm.Show(); this.Hide(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); startForm = new StartForm(); mainForm = new MainForm(); endForm = new EndForm(); Application.Run(new StartForm()); Program.startForm.Hide(); Program.mainForm.Show(); }