Exemple #1
0
        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();
        }
Exemple #2
0
        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)
        }