Hi Anton.
Thanks for the tip .. I will give it a try.
Regards,
Gerard
>>I have 2 issues:
>>1. When I close formA I wlays want FormB to close (otherwise it would be left dangling)
>
>>2. Before I call FormB, it would be nice If I could identify if its already there, if It is just show it, otherwise do a Do Form
>
>Just add a property ChildForm to FormA to store reference to FormB and set default value to .Null. For example this code will create/show FormB:
>
>IF ISNULL(ThisForm.ChildForm)
> DO FORM "FormB.scx" NAME ThisForm.ChildForm LINKED
> ELSE
> ThisForm.ChildForm.Show()
>ENDIF
>
>
>Because form is created with LINKED option it will be automatically released if FormA is released.