Form Sizes
The New-SADScriptoFormProject function provides three intial form size options (by height) to choose from when creating a new ScriptoForm project. These sizes are:
| Size | Height | Width |
|---|---|---|
| Small | 210px | 330px |
| Medium | 260px | 330px |
| Large | 310px | 330px |
The form size is selected by using the -Size parameter when calling the function. The default form size is Medium.
New-SADScriptoFormProject -Size Small -DestinationPath D:\Demo -Name Show-DemoFormThe above example will create a new ScriptoForm project with the form size set to Small.
These sizes can be adjusted as needed by modifying the following variables in the $ShowFormMain script block of the ScriptoForm PowerShell script file after it has been deployed:
$FormHeight = xxx$FormWidth = yyyReplace xxx and yyy with the desired height and width values, respectively. The name of this file will vary based on the -Name parameter argument your provided with the New-SADScriptoFormProject function.