Powershell-Console-Form-Builder (PCFB) is a PowerShell module that allows for the quick and easy creation of graphical user interfaces (GUIs) using the System.Windows.Forms namespace. This module provides a streamlined way to reference the description and example of each class that exists in the Forms namespace, as well as the ability to quickly copy the example code to be added to your project.
The module provides the following commands:
Get-Form-Command -Run <form_snip>
: Runs the example of the specified form snippet.Get-Form-Command -Example <form_snip>
: Displays the example of the specified form snippet in the console.Get-Form-Command -Copy <form_snip>
: Copies the example of the specified form snippet to the clipboard.Get-Form-Command -Description <form_snip>
: Displays the description of the specified form snippet in the console.
<form_snip>
should be the path to the form snippet file, for example:
Get-Form-Command -Run 'Button'
Get-Form-Command -Example 'Button'
Get-Form-Command -Copy 'Button'
Get-Form-Command -Description 'Button'
You can see examples of usage of this module in the examples folder of this repository.
- PowerShell v5.1 or later
You can install this module from the PowerShell Gallery by running the following command:
Install-Module -Name Powershell-Console-Form-Builder
Alternatively, you can download the module from this repository and place it in your $env:PSModulePath
directory.