Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 741
  • Last Modified:

Always select last Item in TreeView control (auto-scroll)

Hi, how can i realize a auto-scroll function with the treeview control in vb6? the program adds entries constantly to the treeview and i want it to autoscroll to the bottom, is there any possibilitie?

thank you!
-beda
0
beda79
Asked:
beda79
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
you could, when you add an item at the end, use the   node's .EnsureVisible method to ensure it is visible (scroll to it)
0
 
beda79Author Commented:
worked great, stupid me....
thank you!
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now