private void lblX_Click(object sender, EventArgs e) { //ucProduct ucProduct = new ucProduct(); this.Hide(); uControl.ucDashboard ucDashboard = new uControl.ucDashboard(); ucDashboard.Dock = DockStyle.Fill; frmDashboard frmDashboard = new frmDashboard(); frmDashboard.Show(); }
private void lblX_Click(object sender, EventArgs e) { //((Form)this.TopLevelControl).Close(); ucCatalog ucCatalog = new ucCatalog(); this.Hide(); uControl.ucDashboard ucDashboard = new uControl.ucDashboard(); ucDashboard.Dock = DockStyle.Fill; frmDashboard frmDashboard = new frmDashboard(); frmDashboard.Show(); }