Link to home
Start Free TrialLog in
Avatar of jvoros1
jvoros1

asked on

MDIParent Child relationship

Hello Expert, I have a form and my frmMainMenu is the mdiParent, and on the frmMainMenu when i select to open ProjectInfo I make that the child
                                                this.SetMnuProjectInfo(false);
                  ProjectInfo.frmProjectInfo frmProjectInfoGUI = new ProjectInfo.frmProjectInfo();
                  frmProjectInfoGUI.MdiParent = this;
                  frmProjectInfoGUI.Show();
                  this.Focus();
My problem is when i am on my frmProjectInfo and i want to open frmContactInfo from inside that form how can i get it to open inside the mdiParent this is my code to open the other form
                                                              ContactInfo.frmContactInfo frmContactInfoGUI = new ContactInfo.frmContactInfo();
                        Genesis.frmMainMenu afrmMainMenu = new Genesis.frmMainMenu();
                  
                        frmContactInfoGUI.ShowDialog(this) ;
                        FillComboBoxes();
                        if(aProjectInfoPD.GetProjectID() != 0)
                        {
                              modes(true);
                              PopulateContact();
                              LoadInformation();
                        }
the reason i use a showDialog is cause once that form is closed i need to repopulate my comboboxes with the contact that was added any ideas on how i could do this?
Thanks
ASKER CERTIFIED SOLUTION
Avatar of gregoryyoung
gregoryyoung
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jvoros1
jvoros1

ASKER

That worked great thank you sooo much