How to Scroll A TreeView Programatically

V

VoxCode LLC

What is the correct way to scroll a tree view control programatically. I
can't seem to find any functions to do this. I am implementing some drag
and drop code for a TreeView and I need to be able to scroll the tree when
the drag cursor is on the first visiable or last visible node.

Thanks - Joel
 
V

VoxCode LLC

Never fails, as soon as I post a message I find the answer.

In case anybody's interested, you use TreeNode.NextVisibleNode and
PrevVisibleNode in conjunction with TreeNode.EnsureVisible.

Joel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top