Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2006-11-07
2
Medium Priority
?
737 Views
Last Modified: 2008-01-09
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
Comment
Question by:beda79
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 1000 total points
ID: 17887513
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
 

Author Comment

by:beda79
ID: 17887614
worked great, stupid me....
thank you!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question