From the course: Complete Guide to PowerShell 7
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Building complex forms - PowerShell Tutorial
From the course: Complete Guide to PowerShell 7
Building complex forms
- [Instructor] Now so far we've just created simple forms that just do a few bits and pieces. So let's talk about creating something like a demographic form, so a form that asks us for more information that a person needs to input. So what we're going to do is we've already used this System.Windows.Forms, but I'm also going to add in another type called System.Drawing that gives us flexibility on the types of controls and the placement of those controls. So let's add those two types in. So we have them loaded, and then we're going to create the form object as we did before. So let's just load that. That's going to be in the middle of the screen. And then I'm going to add a label for the name and a text box for the name. I'm going to also add a label for email and a text box for the email. I'm also going to have an option for radio buttons for genders, so like male and female for example, and we'll add those in. So let's just run that here. And then when I show the dialogue, we're now…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.