Treeview drag drop scrolling

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 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
Lembasts
Posts: 405
Last visit: Wed Mar 20, 2024 1:40 pm
Has voted: 1 time
Been upvoted: 1 time

Treeview drag drop scrolling

Post by Lembasts »

Greetings,
I have implemented a treeview and can successfully drag and drop items within the same window.
What I would like to do with a large treeview and scrollbars is to drag an item to the top or bottom and have it autoscroll so I can drop it on an item that is not in the current window.
Is that possible and if so, how please?

Thanks
David
by jvierra » Tue Aug 31, 2021 8:38 pm
You mave to detect the locaion of the frag movement then send "scroll" commands to the control. Thjere is no builtin method that does this.
Go to full post
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Treeview drag drop scrolling

Post by jvierra »

You mave to detect the locaion of the frag movement then send "scroll" commands to the control. Thjere is no builtin method that does this.
This topic is 2 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