I have found while using Visual Studio Code with Powershell Pro Tools, any time I reopen the Form Designer window, make a change and then save, it will put a Button1_Click object at the top of my main script that I need to clean out manually each time.
Example:
$Button1_Click = { }
I have actually renamed all of my controls and such away from the generic Button1, Label1, etc. then, whenever I click on save it puts that at the top. It does not add a Button1 to either the designer or resource code, only to the top of the main script.
Currently using:
VS Code: 1.98.2
Powershell Pro Tools Extension: 2024.12.0
I have found while using Visual Studio Code with Powershell Pro Tools, any time I reopen the Form Designer window, make a change and then save, it will put a Button1_Click object at the top of my main script that I need to clean out manually each time.
Example:
$Button1_Click = { }I have actually renamed all of my controls and such away from the generic Button1, Label1, etc. then, whenever I click on save it puts that at the top. It does not add a Button1 to either the designer or resource code, only to the top of the main script.
Currently using:
VS Code: 1.98.2
Powershell Pro Tools Extension: 2024.12.0