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.
This topic is 4 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
leroy_002
Posts: 9
Last visit: Thu Mar 07, 2024 1:02 pm

GUI script view

Post by leroy_002 »

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 1473 times

Also, on POSHGUI it does the same thing

Capture.PNG
Capture.PNG (62.48 KiB) Viewed 1473 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: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: GUI script view

Post by jvierra »

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: 9
Last visit: Thu Mar 07, 2024 1:02 pm

Re: GUI script view

Post by leroy_002 »

Awesome, thanks for the response! I appreciate it.
This topic is 4 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked