Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            var form = new form1();

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

            form.Show();
            this.Hide();
        }