How do I minimize a Windows form in an automation?
Follow these steps to use the WindowState property to minimize a Microsoft Windows form:
- Drag a WindowState property from the Toolbox onto the automation that contains the Windows form you want to minimize.
- Select Minimized from the Enum list on the WindowState property connection block.
Note: In the above example, when button1 is clicked the WindowState property is invoked and Windows Form2 is minimized.