private void panel1_VisibleChanged(object sender, EventArgs e) { // MessageBox.Show("Nimesh"); FrmAssetTransfer frm = new FrmAssetTransfer(); frm.TopLevel = false; //panel_Transfer.Controls.Clear(); panel_Transfer.Controls.Add(frm); frm.Dock = DockStyle.Fill; frm.Show(); }
private void pnl_System_Details_SelectedIndexChanged(object sender, EventArgs e) { if (pnl_dataEntry_Transfer.SelectedIndex == 0) { PODetailsForm2 frm = new PODetailsForm2(); frm.TopLevel = false; pnl_dataEntry_po.Controls.Clear(); pnl_dataEntry_po.Controls.Add(frm); frm.Dock = DockStyle.Fill; frm.Show(); } if (pnl_dataEntry_Transfer.SelectedIndex == 1) { frmAssignAssets frm = new frmAssignAssets(); frm.TopLevel = false; panel_assetassign.Controls.Clear(); panel_assetassign.Controls.Add(frm); frm.Dock = DockStyle.Fill; frm.Show(); } if (pnl_dataEntry_Transfer.SelectedIndex == 2) { Item_CodeForm2 frm = new Item_CodeForm2(); frm.TopLevel = false; panel_itemcode.Controls.Clear(); panel_itemcode.Controls.Add(frm); frm.Dock = DockStyle.Fill; frm.Show(); } if (pnl_dataEntry_Transfer.SelectedIndex == 3) { FrmAssetTransfer frm = new FrmAssetTransfer(); frm.TopLevel = false; panel_AssetTransfer.Controls.Clear(); panel_AssetTransfer.Controls.Add(frm); frm.Dock = DockStyle.Fill; frm.Show(); //panel1.Visible = true; } if (pnl_dataEntry_Transfer.SelectedIndex == 4) { Frm_Csv_Generator frm = new Frm_Csv_Generator(); frm.TopLevel = false; panel_Transfer.Controls.Clear(); panel_Transfer.Controls.Add(frm); frm.Dock = DockStyle.Fill; frm.Show(); } if (pnl_dataEntry_Transfer.SelectedIndex == 5) { //FrmAssetVerification frm = new FrmAssetVerification(); //frm.TopLevel = false; //panel_Transfer.Controls.Clear(); //panel_Transfer.Controls.Add(frm); //frm.Dock = DockStyle.Fill; //frm.Show(); Avppanel.Visible = true; } }