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

preview_player
Показать описание
Making a GUI (Graphical User Interface) with PowerShell. In this video I go over how to trigger actions based on the selection change in the drop down list and show the results in two labels and have the color change in the label based on the text inside.

Links:

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

I'm glad to see that you're still active. New subscriber. Thanks for your effort man.

daiki
Автор

This is great! Just recently started with GUI programming...so great video..thanks.

andersdose
Автор

Great job!
Looking forward to your next video.

HappyYardBird
Автор

Hi!
You are doing great job. I was looking for just this and I learned alot. Thanks alot.

rashkaViking
Автор

Thank you very much for your productive videos.

keep up with the good job man. ❤❤❤❤❤❤❤❤

mnamusik
Автор

Amazing work, thank you for sharing your knowledge Boss

miladn
Автор

I just found your videos and I've liked the ones I've watched so far. Please keep it up.
Just a quick comment about needing to pipe the output of get-service to select. You actually don't need to do that. Get-Service returns a service controller object. It already contains those properties. Where you get confused is that you use write-host to display the variable. Write-host is not the best choice for displaying information such as an object, in my opinion. Instead try write-output which will display a powershell formatted representation of the object.

aaronfletcher
Автор

Hello, thanks for the video it was really helped me. I am trying to select a video from the computer and I want to do this in dropdown menu. I could not figure it. How can I do this?

buseacun
Автор

Love the videos, man. Keep up the content.

jthiesenable
Автор

Great video 👍🏻 starting to look into wpf in visual studio myself so this would be very helpful

RPG_ash
Автор

I’m here to learn but I do have a suggestion as well. You know how you mentioned it’s tricky to position the labels and such using PowerShell? Couldn’t you add a line at the top of the form and just put for example; 100, 20 or something, then 150, 20 and then 200, 20. Then the same down the y axis so that when you add a new position you can see a sort of “ruler” to reference? That way you can easily see visually where 150, 20 would be and 20, 150 would be. It’s a bit of effort initially but then you can easily see what positions to use as you go through the rest and then simply remove that “ruler” once you’re done. Wouldn’t that work? Basically creating a x, y position display so you know straight away that if you do 150, 50 you could see where they would intersect and immediately know the position you’ll need for the x, y reference? You could do it in quite a granular way depending on how much you want to do. Does that make sense ?

ClassicRiki
Автор

Any idea how to remove the highlighted text in the drop down? So for example, when the form opens I want the drop down list to be pre-populated with the text 'Selection option'. But when the form opens, this is already highlighted in Blue. Same thing when I select an option from the list it highlights the text of the value in Blue. How do I get rid of the highlight as well as the option to manually type in the drop down list field?

BorisJohnsonMayor
Автор

@JackedProgrammer Can you make a video using the drop-down box that allows output to a rich text box and an option to export the results to a file like a CSV? I would love to see this as one of your tutorials to expand on what you have done here with services maybe tied in with AD. Thanks again for all the super easy and helpful tutorials

scriptnerdz