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 SubReference link: ScrollBar customization