Chapter 24. Creating a GUI tool, part 2: the code
In the previous chapter, we created the graphical user interface for our PowerShell script; in this chapter, we’ll start adding the code needed to make that GUI functional. We’ll continue working in PowerShell Studio. But everything we’re doing will be much more code intensive, meaning you could choose to use the tool just to create the GUI, copy and paste the GUI-creation code into the PowerShell ISE, and then work in the ISE from there.
24.1. Addressing GUI objects
When we had PowerShell Studio create the script that implements the GUI, it assigned our GUI controls to variables. Those variables were named based on what we assigned to the Name property of our controls, so our Computername ...
Get Learn PowerShell Toolmaking in a Month of Lunches now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.