Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MDI & Child Forms
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01053554
Message ID:
01053691
Views:
11
>hi all,
>
>i am trying to get a simple MDI/Child form up and running but am stuck at the following -
>
>i have a MDI form and am loading a Child form on top of this MDI form.
>
>on the MDI form i have a "cancel" button which i want to use to close the child form (if any are open). what is the command sequence i need to code into the cancel-click event of the cancel button which is on the MDI form ?
>
>finally, what are the form properties i need to set on the MDI and the Child form ?
>
>sincere thanks in advance.

Is there any reason why you're not using the main VFP window? I would because it means that there's one less object to maintain. Further, in it, I can have a menu option that will close all open forms, if there are any with something like
LOCAL lnlast, lni
lnlast = _SCREEN.Forms.Count
FOR lni = lnlast TO 1 STEP -1
  _SCREEN.Forms(lni).Release
NEXT
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform