Creating a Windows Application with the Application Wizard

The Application Wizard automatically generates a Windows application using WFC, and provides the option of binding your form to the fields in a database. You can also specify the packaging options for your project.

Note   Before you run the Application Wizard, close any projects that you may already have open. (On the File menu, click Close All.)

To create a Windows application with the Application Wizard

  1. On the File menu, click New Project.

  2. On the New tab, expand the Visual J++ Projects folder and click Applications. Then select the Application Wizard icon.

  3. In the Name box, enter a name for your project.

  4. In the Location box, enter the path where you want to save your project, or click Browse to navigate to the folder.

  5. Click Open.

  6. In the Welcome step, you can choose a profile from the drop-down list. (If the profile you want to use is not listed, click the ellipses button (...) to locate and open that profile.) For more information about profiles, see Introducing Wizards and Builders.

  7. Click Next to specify the application type:
  8. Click Next to specify the features that you want to add to your form:
  9. Click Next to specify the type of source code comments:
  10. Click Next to specify the packaging options:
  11. Click Next to view the summary for your application:
  12. Click Finish to create the project. Your application is opened in the Forms Designer.

Building and Running the Application

After you build your application, you can run it from the development environment.

To build and run your application

  1. On the Build menu, click Build. Any compilation errors or messages appear in the Task List. (Double-clicking an error in the Task List moves the insertion point in the Text editor to the error.) Correct the errors and rebuild your application.

  2. To run the application from the development environment, click Start on the Debug menu.

  3. To close the application, click the Windows Close button located in the upper-right corner of the form.

For more information about creating Windows applications, and for a simple example that shows how to modify a form in the Forms Designer, see Creating a Windows Application with WFC.