private void button1_Click(object sender, EventArgs e) { var form = new form1(); form.Show(); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { //hiding this form and showing the main form form1 form = new form1(); form.Show(); this.Hide(); }