TreeView控件如何控制滚动条的位置
TreeNode.EnsureVisible():
Ensures that the tree node is visible, expanding tree nodes and scrolling the tree view control as necessary.
滚动条移动到顶端:
1 this.treeView1.SelectedNode = this.treeView1.Nodes[0];
2 this.treeView1.Nodes[0].EnsureVisible();
转载于//www.cnblogs.com/DerekDeng/p/11533302.html
还没有评论,来说两句吧...