This article was previously published under Q124125
This article has been archived. It is offered "as is" and will no longer be updated.
When you start the Form Builder in Visual FoxPro version 3.0, a genericform is created for you by default. You can then modify or change thisgeneric default form to make a custom default form. Then this customizedtemplate can be used with the Form Builder.
This article shows by example how to create a custom default form.
When you create your own Base Class, you are creating a subclass of VisualFoxPro's base class. A Form is a Base Class in Visual FoxPro. You cancreate a new subclass of the Base Class Form that can act as the defaultForm. This allows you to set a form the way you like it (background, color,logo, fonts, and so on). Then you can have Visual FoxPro call your designas the default (base) form whenever you create a new form.
Create a form the way you want it. Then from the File menu, choose Save As Class. In the next dialog, select the the Current Form check box, and give the name of the class and the .VCX file where it will be stored.
Choose Options From the Tools Menu.
Select the Controls Tab, and add the Class library in which this form class is stored. This process is called "registering" the class library.
Select the Forms Design tab. The registered library should appear in the Form edit box of the Template Classes region. If no libraries are listed, click the check box next to 'Form:' and select your class library. If you have more than one form class, select the one you want to be the default. (Look for it on the right-hand side, under Class Name.)
Create a new form. It should have the properties of your template.