Beispiel #1
0
        private void menu1_button_Click(object sender, EventArgs e)
        {
            menu1 menu1Ctrl = new menu1();

            Parent.Controls.Add(menu1Ctrl);
            Parent.Controls.Remove(this);
        }
Beispiel #2
0
        public void changeToMenu1()
        {
            menu1 menu1Ctrl = new menu1();

            panel.Controls.Add(menu1Ctrl);
        }