I have a main MDI Form and rest of forms open under it. On load of this form i am showing a [b]frmMsg [/b]which is opened using [b]frmMsg.ShowDialog()[/b], which means that frmMsg will be behave like a modal form.
frmMsg frmMessageNew = new frmMsg();
frmMessageNew.MdiParent = this.MdiParent;
Now on frmMsg i have a button by clicking on it i load another form [b]frmNewMessage [/b] as
frmNewMessage ChildForm = new frmNewMessage();
ChildForm.MdiParent = this.MdiParent;
But ChildForm (i.e. frmNewMessage) fails to open inside MDI form. It is not able to find the MDI parent form.
does any one knows how to do this.