select from list - possible ?

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 15 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
new2ps
Posts: 6
Last visit: Sun Sep 07, 2008 4:35 pm

select from list - possible ?

Post by new2ps »

is it possible to LIST items in a way that the end-user can scroll and select an item?

for example is it possible to run the "get-childitem" command and that the output will be a list that one can scroll and select on item ?

TIA
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

select from list - possible ?

Post by jvierra »

Couldn't find an example of a listbox that was simple so I created one that may be more helpful than the FlowPanel example.

This one works best when executed from PS command line

. c:scriptListBox.ps1

or whatever the path is that you saved it to.


uploads/2491/ListBox.txt
This topic is 15 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked