Skip to main content

Creating a Windows Form

Creating a Windows Form

The Windows Form project item lets you present a window or a dialog during the process execution. You can use a Windows Form as a debugging tool to test robots before integrating them with a Pega application, or as a user interface (UI) for the solution.

Create a Windows Form

Follow these steps to create a Windows Form in a project.

  1. In the Solution Explorer, right-click the project and choose Add > New Windows Form. The Add New Item window is displayed.

    windows form 1
  2. In the Name field, enter the name of the Windows Form according to project documentation, typically frm{purpose of the project item}.

    windows form 2
  3. Click Add to add the Windows Form with the specified name. The Windows Form is displayed in the Solution Explorer.

  4. From the designer area, open the Properties window. The Properties window is displayed.
  5. In the Properties window, adjust the properties of the Windows form based on the project documentation and requirements.

  6. From the menu bar, click File > Save All to save your changes.

Add Toolbox components to a Windows Form

Follow these steps to add components to the Windows Form.

  1. In the designer area, open the Toolbox window. The Toolbox window is displayed.
  2. From the Common Controls section of the Toolbox, drag and drop a Windows control on the Windows Form.
    Note: You can also use components from All Windows Forms and Containers section of the Toolbox, if necessary.
    windows form controls
    windows form sample
  3. In the Properties window, change the design (Name) property and other properties based on the project documentation.

    Note: The naming convention for Windows form objects is {type of the control in lowercase}{name of the object in uppercase}.
    Windows form properties
  4. From the menu bar, click File > Save All to save your changes.

This Topic is available in the following Module:

If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice