TreeView control partially hiding last node in VB.Net Visual Studio 2005
Posted on 2006-11-09
I can't figure out why the treeview control in a VB.Net app is behaving like this. I can create the behavior as follows: 1) Create a new project -> windows app
2) Add a treeview to the form and place the following code in the form load event handler to fill the treeview with 100 nodes:
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
For i As Integer = 1 To 100
When I run the program from with VS it hides part of the last node when I scroll down to the bottom of the treeview. Am I missing something or is this a bug with the control in .NET? I can get it to hide almost all of the last node by changing the height of the control. I keep thinking that I'm just overlooking something simple, but can't figure it out. Please help me to salvage my sanity.