PowerShell Tutorials : Making a GUI Part 3 - Drop Down Lists 1/2
HTML-код
- Опубликовано: 11 сен 2024
- Making a GUI (Graphical User Interface) with PowerShell. In this video I go over how to a combo box (Drop down list) and how to populate the list with values using cmdlets. In the next video we will learn how to trigger actions based on the selection change in the drop down.
Links:
First Video : • PowerShell Tutorials :...
PowerShell Beginner Series: • Beginner PowerShell Tu...
PowerShell Intermediate Series: • Intermediate PowerShel...
Tags:
PowerShell
GUI
Programming
Scripting
Automating
JackedProgrammer
Coding
In my search for understanding, with no exaggeration, I have watched nearly every video on RUclips for PowerShell GUI creation. This series so far is better than all of them combined. I like the way you section your code. It seems so much cleaner and easier to understand than what I've seen. This is really great content and delivery. Thank you very much!
Thank you so much @misteremachine I appreciate the kind words I'm glad you're enjoying the videos :)
I am using powershell at my first internship and no other videos have helped me understand as much as yours, thank you!!!!
Thanks for the tutorial (from Plymouth, UK). It's been a real help, and is at just the right pace.
Not a problem! :) glad you're enjoying the videos :)
Hi, Thanks a lot for your impressive tutorials. It´s really simple to understand PowerShell works. Please do more about these themes.
Greetings from East Tyrol/Austria
No problem, thank you! :) Ill be doing more of these for sure
Thank you very much! ❤❤❤❤❤❤❤❤❤❤❤❤❤❤
keep up with the great Job PowerShell-Master!
Thanks for the tutorial (from Turkey). That is really helped me. Could you make more videos about using ffmpeg in powershell windows forms? It would be perfect :)
I keep getting this
Great stuff. How do I run the form as a standalone without running PowerShell_ISE or PowerShell? Do I need to save it as a different extension. Right now the one I created I run it from the Software Center by calling the .PS1 file with the windowstyle Hidden, and that works fine for that, but I want to be able to run the form itself
Hi Thanks for your tutorial. This is really ultimate. can you help me to write some line for following scenario?
i need a input box based on selection from drop down list. Is there any video made by you ?
@JackedProgrammer just wondering if its possible to use checkboxes to filter the items in the drop down list ? I'm looking to create a project where I get items from Active directory for the drop down but want to be able to filter out specific items. Not sure if checkboxes would be best method or would you recommend something else ?
More details for an example would be an OU has the following naming convention for items 1 LS/Finance, 2 LS/Finance 4 SS/Sales, 5 SS/Sales 5TD/Testing, 6AS/Experiemental
If I want to filter out all the names with a 5 at the beginning of the name could I use a check box to search for these specific items. Thanks for your assistance
I am trying to find a way to change the font size inside of the Combo Box. Does anyone know how to do that? On the PC I am using the combo box shows up very small, so small I can't read what it is saying. The monitors I am using are 1920x1200, so I don't think it should be as small as it is. Any advice helps!
Thank you @JackedProgrammer for making this very useful course. I really appreciate it, and have been following along in hopes of making a GUI for a simple install script at work.
Edit: I think I was able to get a work around, and I'm not sure if this is really how to do this, but this is what I did and I am able to now change the font size of the Combo Box:
In the ##Set up base form section instead of setting $AppForm.Font=$DefaultFont I set it ='Verdana,14'. Then for the rest of the sections I can set them independently to $DefaultFont to make them the correct size. I did keep all of the .AutoSize=$true. I found if I took that out the text started to get cut off. I hope all of that helps
Your tutorials are awesome but I have one suggestion. Blow your nose before shooting, or pause and do it. The constant sniffling/snorting is offputting.
Unable to find type [System.Windows.Form.Label].
At line:8 char:14
+ $LabelObject=[System.Windows.Form.Label]
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Windows.Form.Label:TypeName) [], RuntimeException
+ FullyQualifiedErrorId : TypeNotFound
You forgot the S in System.Windows.FormS.Label
Does anyone know of a way to suppress the output of the numbers to the console? I would like this to just run cleanly without a console window opening up and displaying numbers.
Before I posted this I did some more digging, and I found that after the line "Get-Service | ForEach-Object {$ddlService.Items.Add($_.Name)}" you can put a "> $null" so the console remains clean, and only the path opens up in the console. The whole line would look like this: Get-Service | ForEach-Object {$ddlService.Items.Add($_.Name)} > $null
Hi @juddthompson6032 you can use that , you can also add a [void] infront of the line and this will void any output to the console as well, hope that helps :)