5. Form sizing - CodeBlueG/PSForms GitHub Wiki

Having added all of the fields, the next step is to calculate the size of the form.
The form size is calculated before the footer buttons and images are added as these results are used to place these items correctly.

Sizing is carried out using the "set-formSizing" cmdlet as follows;

  $TestForm = Set-FormSizing -formObject $TestForm  

This command will correctly size the TestForm. The variable for the form object should be used in the cmdlet and passed to the variable as shown here.