TreeView FullPath

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
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 2 years and 3 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
rafi2021
Posts: 1
Last visit: Thu Dec 09, 2021 3:52 am

TreeView FullPath

Post by rafi2021 »

This is my first post here so Hi All, and Question IS:
I made my first form with TreeView, populated it with what i needed and im stuck.

That Tree is made from registry keys so it can be random items
Anyone knows how to get full Path for selected node?

Im new in forms and powershell, started like 2 month ago.
Thanks for reply.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: TreeView FullPath

Post by jvierra »

What path are you looking for? There is a "path" property on each node.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: TreeView FullPath

Post by jvierra »

The attached PSF will give you some good examples on using a TreeView with the registry.
Attachments
Demo-TreeviewRegistry.psf
(14.28 KiB) Downloaded 101 times
User avatar
Lembasts
Posts: 405
Last visit: Thu Mar 14, 2024 10:47 pm
Has voted: 1 time
Been upvoted: 1 time

Re: TreeView FullPath

Post by Lembasts »

Thanks heaps! Thats a really cool demo.
Cheers
David
This topic is 2 years and 3 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