Treeview. How to scroll until the selected item is on top?

I have been working on a personal file browser for a year, and I am trying to focus on the folder that I select.

For example, if I say that my default folder is C: \ Users \ Me, then it will automatically expand C, Then Users, etc ...

At the end I select the β€œMe” folder, I was not able to scroll to β€œAutomatically” so that I could see it on top of my list. Anyone have an idea?

Thanks for the help!

+3
source share

All Articles