Articles in this section

How to disable the scroll control in WinForms TreeViewAdv?

Disble the scroll control

The HScroll and VScroll Properties of the TreeViewAdv helps the user to display the tree without scrollbars if not needed. The ScrollControl can be disabled by using the following code snippet.

C#

private void Form1_Load(object sender, System.EventArgs e)
{
   this.treeViewAdv1.AutoScrolling = ScrollBars.None;
   this.treeViewAdv1.VScroll = false;
   this.treeViewAdv1.HScroll = false;
}

VB

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs)
   Me.treeViewAdv1.AutoScrolling = ScrollBars.None
   Me.treeViewAdv1.VScroll = False
   Me.treeViewAdv1.HScroll = False
End Sub

Reference link: ScrollBar customization

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied