Problem:
If you have a project with for example 3 forms in it:-
1) frmMain
2) frmFirst
3) frmSecond
When you run the project it loads frmMain which have the property IsMdiContainer set to true.
frmFirst is running as a child of frmMain.
From a button on frmFirst how can I start off frmSecond and have that as a Child of frmMain in the MDIContainer.
Resolution:
You can use code such as:-
set ls-frmSecond to cfrmSecond::"New"()
set ls-frmSecond::"MdiParent" to self::"MdiParent"
invoke ls-frmSecond::"Show"()
to do this. You set the parent to the parent of the current form which in this case is frmFirst.