PMFJI Igor,
We have the same situation where we dynamically add data-intensive pages to our pageframes dynamically as the user moves to each page.
First, cut and paste your container into a new class (e.g. IgorsFormpg2Controls)
Next, add this code to Page2.Activate():
IF TYPE('This.IgorsFormPg2Controls') # 'O'
This.AddObject('IgorsFormPg2Controls', 'IgorsFormPg2Controls')
WITH This.IgorsFormPg2Controls
.Left = 1
.Top = 1
ENDWITH
ENDIF
This will add the control the first time the user selects the page, without interfering with the z-order of your other page controls.
Let me know if I hit this one in the eye, too. (I really think that version of the saying is better!)
---J
>All it was is that on the form I have a container with few controls. In design time it is below the PageFrame but on the form Init() I am bringing it back to the Page Frame to be displayed on the second page and it covers cGridList up to first 4 records!
>Is there any way I could use Send To Back and Bring Up Front in the run time? Probably not.
>Thank you for your time and help Kevin.
>Best Regards.
>Igor