General information
Category:
Forms & Form designer
>I have a parent form, and in that form I can open a child form.
>In the child form the property ShowWindow=1, and in the parent form the property ShowWindow=2. This works fine, >but... when ShowWindow=1 in the parent form (top level), the form can be anywhere on the Windows desktop.
>If I minimize or move the main VFP window, the parent form remain visible on the same place.
>I want the parent form contained inside the main Visual FoxPro window(, and of course, the child form contained >inside the parent form).
To have the first form in the VFP screen, you have to set the ShowWindow property to 0 (In-screen). Then the child form does not know that it is a "child" of the first screen -- it will default to the In-screen mode even though ShowWindow=1 since there is not a Top-level form. Basically, you cannot have a child have a child form.
To get around this, you might try a hack on the _VFP events for Resize or Move (via BindEvents) to control the Top-level form.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only