Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a form based on a class
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00059407
Message ID:
00059620
Views:
30
>>Dragging the class icon into a form set won't change the existing forms parent class. It will just add a new form to the form set with the new class.
>>
>>You have to:
>>1) Open a new form
>>2) Drag the class icon from the class browser onto the form
>>3) Remove the other form
>>4) (Optional) Remove the form set
>
>I must be doing *something* wrong. I've tried what you have suggested but when I drag from the class icon in the Class Browser, nothing happens. The mouse cursor changes to what looks like a little textbox or something, but nothing happens when I drop it in the Form Designer. I've tried creating a Form Set first, then selecting the Form Set object in the Properties window and then dragging the form class, but it still doesn't work. When I drag the form class onto the desktop, a live copy of the form instantiates, but I want it in the Form Designer. Any ideas as to what I'm doing wrong?
>
>Thanks.

Bryan, Sylvain left out a few steps which aren't obvious:

1) Open a new form
1a) Click on the Form menu, and Create Formset
1b) Click anywhere on your original form

2) Drag the class icon for the form you want from the class browser onto the form. Go to your Project Manager, and find the Form Class you want. Click on the form icon beside the name, and drag it to your new form. You should now have 2 forms in the formset.

3) Remove the other form by activating it in the Property sheet (the combo at the top of the Property sheet should have 3 entries: Formset, original form and dragged-in form). After it is the active form, go to the Form menu and click on remove form. You will now have the formset and the form you dragged in.

4) (Optional) Finally, go BACK to the Form Menu and click on Remove Formset.

Hope this will show you where you missed a step. It's easy to do....

Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform