How to kill horizontal scrollbar of treeview control

Now, I have treeview with Scrollbar properties is true, it mean that I
will have two scroll (vertical scrollbar and horizontal scrollbar) .
So, I don't want to use horizontal scrollbar, I want to kill this
scroll.

Please give some idea or solution for this problem.

Many thank,




Answer this question

How to kill horizontal scrollbar of treeview control

  • Adam Nemitoff

    Check the answer you got in the other thread you started. Please: don't cross post in multiple forums!


  • d2army

    Hi,

    Setting the Scrollable property of the TreeView to true will display a scrollbar when it is needed. There will be no horizontal scrollbar unless nodes are expanded that take more horizontal space than available.

    So your question is to hidethe horizontal scrollbar when it is needed

    Charles


  • Wayne.C

    Hi,

    You can't do that unless you change the width of the control to accommodate the longest width in the tree.

    Unless you really want to build a completely new custom control.

    Sorry.

    Hope that helps.

    Mustafa Ismail

  • How to kill horizontal scrollbar of treeview control