GUI script view

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
leroy_002
Posts: 3
Joined: Thu Jun 20, 2019 2:01 am

GUI script view

Post by leroy_002 » Wed Jun 19, 2019 7:17 pm

Hello,

I know this is a noob question but when I use Visual Studio and I start to add tools to the GUI windows (ie labels, textbox, buttons) I can see the actual code that's used to create each tool in a separate window.

Capture2.PNG
Capture2.PNG (69.59 KiB) Viewed 573 times

Also, on POSHGUI it does the same thing

Capture.PNG
Capture.PNG (62.48 KiB) Viewed 573 times

I can't seem to find where it's creating the code in Powershell Studio....I add all the tools I want to use and the script window is just empty

jvierra
Posts: 13992
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: GUI script view

Post by jvierra » Wed Jun 19, 2019 8:05 pm

That is how PSS works. It places the code in a code repository that is an XML file. This XML then generates the code when run.

You can use the "Export to File/Clipboard" on the "Deploy" tab to get the script.

leroy_002
Posts: 3
Joined: Thu Jun 20, 2019 2:01 am

Re: GUI script view

Post by leroy_002 » Thu Jun 20, 2019 3:46 pm

Awesome, thanks for the response! I appreciate it.

Locked