C# 2005 - childForm setting MDIParent of another childForm
-
Hello everyone, Here's the scenario: I have three windows forms (frmMain, frmClients, frmOrders). There's a button on frmClients that opens frmOrders. Now, the question is: What's the code on frmClients to define that the frmOrders' MDIParent is frmMain? Thank you very much for your time and help, JC Carmo.
-
Hello everyone, Here's the scenario: I have three windows forms (frmMain, frmClients, frmOrders). There's a button on frmClients that opens frmOrders. Now, the question is: What's the code on frmClients to define that the frmOrders' MDIParent is frmMain? Thank you very much for your time and help, JC Carmo.
hi,if you declare frmOrder's MDiparent as frmmain, then you cannot show frmOrder just like that. you have to show the mdiparent of the formorder and then show formorder. the code inside the button will be like Order frm = new Order (); FrmMain frmMain = new FrmMain(); frmMain.Show(); frm.MdiParent = frmMain; frm.Show(); but infrmmain, the IsMDIContainer property should be set to true. try this. all the best. those who win are those who believe they can
-
Hello everyone, Here's the scenario: I have three windows forms (frmMain, frmClients, frmOrders). There's a button on frmClients that opens frmOrders. Now, the question is: What's the code on frmClients to define that the frmOrders' MDIParent is frmMain? Thank you very much for your time and help, JC Carmo.