I need to have a TreeView with only vertical scrollbar.
I tried this but it doesnt work, the resulting scrollbar doesnt do anything at all.
I tried the opposite (scrollable to true and disable horizontal scrollbar with that user32.dll function) – it doesnt work, when i add long enough stuff to the TreeView the scrollbar shows again…
You can try turning on the TVS_NOHSCROLL window style on the treeview control. To do so you have to extend the standard TreeView control with a custom TreeView like this one :