This content has been archived.

How do I minimize a Windows form in an automation?

Follow these steps to use the WindowState property to minimize a Microsoft Windows form:

  1. Drag a WindowState property from the Toolbox onto the automation that contains the Windows form you want to minimize.
  2. Select Minimized from the Enum list on the WindowState property connection block.
1287591

Note: In the above example, when button1 is clicked the WindowState property is invoked and Windows Form2 is minimized.

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.