Esempio n. 1
0
        private void goback_Click(object sender, EventArgs e)
        {
            mainMenu mainmenuCtrl = new mainMenu();

            Parent.Controls.Add(mainmenuCtrl);
            Parent.Controls.Remove(this);
        }
Esempio n. 2
0
        public Form1()
        {
            InitializeComponent();
            panel = mainPanel;
            mainMenu mainMenuCtrl = new mainMenu();

            panel.Controls.Add(mainMenuCtrl);
        }