static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); StartForm startForm = new StartForm(); MainForm mainForm = new MainForm(); EndForm endForm = new EndForm(); Application.Run(new StartForm()); }
private void BtnClick(object sender, EventArgs e) { var TheButton = sender as Button; var tag = TheButton.Tag.ToString(); switch (tag) { case "Next": EndForm endForm = new EndForm(); endForm.Show(); Hide(); break; case "Close": Application.Exit(); break; } }