private void customersToolStripMenuItem_Click(object sender, EventArgs e) { frmCustomers frmCustomers = new frmCustomers(); frmCustomers.MdiParent = this; frmCustomers.Show(); }
private void btnCustomers_Click(object sender, EventArgs e) { frmCustomers viewForm = new frmCustomers(); viewForm.Show(); this.Hide(); }
private void cus_pnl_Click(object sender, EventArgs e) { bool IsOpen = false; int tabcount = 0; foreach (Form f in Application.OpenForms) { if (f.Text == "Customers") { tabForms.SelectedTab = tabForms.TabPages[tabcount - 2]; IsOpen = true; f.Focus(); break; } tabcount++; } if (IsOpen == false) { frmCustomers frm = new frmCustomers(); frm.FormBorderStyle = FormBorderStyle.None; frm.StartPosition = FormStartPosition.Manual; frm.Location = new Point((this.Width - frm.Width) / 2, this.Location.Y + (this.Height - frm.Height) / 2); this.pnlMain.Visible = false; frm.MdiParent = this; frm.Show(); } }
private void barButtonItem5_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmCustomers frm = new frmCustomers(); frm.MdiParent = this; frm.Show(); }
private void customersTool_Click(object sender, EventArgs e) { ManagefrmView(customersTool, panelCustomer); var frmCustomers = new frmCustomers(adminDto.Id); frmCustomers.TopLevel = false; frmCustomers.AutoScroll = true; frmCustomers.FormBorderStyle = FormBorderStyle.None; panelCustomer.Controls.Add(frmCustomers); frmCustomers.Show(); }
public static frmCustomers CreateInstance() { frmCustomers theInstance = new frmCustomers(); theInstance.Form_Load(); //The MDI form in the VB6 project had its //AutoShowChildren property set to True //To simulate the VB6 behavior, we need to //automatically Show the form whenever it //is loaded. If you do not want this behavior //then delete the following line of code //UPGRADE_TODO: (2018) Remove the next line of code to stop form from automatically showing. More Information: http://www.vbtonet.com/ewis/ewi2018.aspx theInstance.Show(); return(theInstance); }