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 4 years and 2 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.
does anybody know how custom Vscroll can be used for scrolling down the Treeview full of nodes and childnodes ? i can use it only when i have a nodes, but unfortunatelly it does not work when childnodes are there.
my simple code :
Why? The TreeView has its own scrollbars. They will turn on when needed. To be sure the children are expanded use the "ExpandAll" method of the tree control.
to be honest, i have been trying to implement this approach as well, but without luck - it seems even more complicated. Can you give me some example or some working code ?
figured it out. what you suggested is very complicated. turns out solution is super simple
1. create an array and assign custom index to each value
2. compare scroll value to custom index value
3. set selectednode to node that contains this custom index
4. create afterselect event and set topnode as selected node
that is correct - i needed to sync the scrollbars. And this is only solution i came up in order not to do any heavy coding.
As i do not know how to scroll to child, i simply select that child that has same index as vscrollbar and make it appear on top.But no matter the path, result works 100 % percent. Too bad i cannot simply attach the solution
I did not like the gray style of their ScrollBars vertical and horizontal. Is it possible to change it somehow, I want gradient ScrollBars. How can I do that and how to learn precalculus fast?
This topic is 4 years and 2 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.