Category / Section
How to disable the scroll control in WinForms TreeViewAdv?
1 min read
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 Scroll Control 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: https://help.syncfusion.com/windowsforms/treeview/scrollbar-customization