private void inventorycharge() { Presentation_Layer.Buy_Forms.Cellar_Submenu cs = new Presentation_Layer.Buy_Forms.Cellar_Submenu(); cs.TopLevel = false; principalcontrol.Controls.Add(cs); cs.Show(); }
private void inventorybtn_Click(object sender, EventArgs e) { this.Controls.Clear(); Presentation_Layer.Buy_Forms.Cellar_Submenu cs = new Presentation_Layer.Buy_Forms.Cellar_Submenu(); cs.TopLevel = false; cs.Dock = DockStyle.Fill; this.Controls.Add(cs); this.Tag = cs; cs.Show(); }