private void goback_Click(object sender, EventArgs e) { mainMenu mainmenuCtrl = new mainMenu(); Parent.Controls.Add(mainmenuCtrl); Parent.Controls.Remove(this); }
public Form1() { InitializeComponent(); panel = mainPanel; mainMenu mainMenuCtrl = new mainMenu(); panel.Controls.Add(mainMenuCtrl); }