From the course: Complete Guide to PowerShell 7
Unlock this course with a free trial
Join today to access over 24,400 courses taught by industry experts.
Creating a basic form - PowerShell Tutorial
From the course: Complete Guide to PowerShell 7
Creating a basic form
- [Instructor] Okay, so in the previous example, we just created a basic form. So let's go a little bit further and look at how we add all these bits and pieces together. And as you can see, I've changed the view, so the PowerShell terminal's on the right this time. So what I can do is right click here and just say Run Selection, and it appears on the right hand side. So let's go ahead and just review creating the basic form. So we go ahead and say Windows.Forms.Form. We then create the form properties, and then we add the controls that we want to the controls collection, and then we show that specific form. So let's just run selection, and sure enough, it just says a basic form with a label, welcome to the PowerShell GUI development. So fairly straightforward. So let's go ahead and modify that, and we'll add a text box to that, the same principle as before. So the same form that we just created, I'm going to go ahead and right click all of this here, run selection. And sure enough…
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.