private void button1_Click(object sender, EventArgs e) { this.Hide(); sign f1 = new sign(); f1.Show(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); sign f = new sign(); f.ShowDialog(); if (f.DialogResult == DialogResult.OK) { Application.Run(new main()); } }