PowerShell Tutorials : Making a GUI Part 3 - Drop Down Lists 1/2

preview_player
Показать описание
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:

Tags:
PowerShell
GUI
Programming
Scripting
Automating
JackedProgrammer
Coding
Рекомендации по теме
Комментарии
Автор

In my search for understanding, with no exaggeration, I have watched nearly every video on YouTube 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!

IMEllison
Автор

I am using powershell at my first internship and no other videos have helped me understand as much as yours, thank you!!!!

arianawutareyoudoinghere
Автор

Thanks for the tutorial (from Plymouth, UK). It's been a real help, and is at just the right pace.

huxham
Автор

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

chrioll
Автор

Thank you very much! ❤❤❤❤❤❤❤❤❤❤❤❤❤❤
keep up with the great Job PowerShell-Master!

mnamusik
Автор

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 :)

buseacun
Автор

Is splatting an option for adding controls? '...controls.addrange...' - that way you can modify the splat group and not have to adjust the controls line when you want something added or removed?

trashketchum
Автор

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 ?

randomtopics
Автор

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

xavierscott
Автор

@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

scriptnerdz
Автор

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

juddthompson
Автор

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.

rijack
Автор

Unable to find type [System.Windows.Form.Label].
At line:8 char:14
+
+
+ CategoryInfo : InvalidOperation: [], RuntimeException
+ FullyQualifiedErrorId : TypeNotFound

trinitey
Автор

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 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 > $null

juddthompson
welcome to shbcf.ru