예제 #1
0
파일: Form1.cs 프로젝트: lockerkit/SBSH-reg
        private void button1_Click(Object sender, EventArgs e)
        {
            // Create a new instance of the Form2 class
            hoofdmenu settingsForm = new hoofdmenu();

            // Show the settings form
            settingsForm.Show();
        }
예제 #2
0
파일: login.cs 프로젝트: lockerkit/SBSH-reg
        private void button1_Click(Object sender, EventArgs e)
        {
            hoofdmenu hoofdmenu = new hoofdmenu();

            this.Hide();               //Hide the main form before showing the secondary
            hoofdmenu.ShowDialog();    //Show secondary form, code execution stop until frm2 is closed
            this.Show();               //When frm2 is closed, continue with the code (show main form)
        }