moving a treeview's scrollbars to the top of the treeview
Posted on 2004-10-14
I am trying to move the scrollbars of a treeview control to the top of the control. When I add a large number of nodes and expand all the nodes via code, the treeview control moves to the bottom of the treeview. I want the scrollbars to be at the top of the treeview. I am pretty sure you can do this using the windows API SendMessage() function, but I dont know what values to give to the function to get it to work. If there is a way to do it using c# code instead of the API call I would prefer to do that.