Solved

How to Start TreeView  with only the Root Node Showing?

Posted on 2002-04-27
3
160 Views
Last Modified: 2010-05-02
I would like the Display of the TreeView to start out showing only the Root Node. Anyway of getting it to rollup after populating it?
0
Comment
Question by:eeevbeee
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 50 total points
ID: 6974486
I haven't  your problem:
this is my example:
Private Sub Form_Load()
Dim nd As Node
Set nd = tv.Nodes.Add(, , , "culo")
tv.Nodes.Add 1, tvwChild, , "uno"
tv.Nodes.Add 1, tvwChild, , "dos"
End Sub
0
 

Author Comment

by:eeevbeee
ID: 6974504
yes, you are right, I had EnsureVisible set.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6975147
Yeah, that was my first thougth too.
Thanks for "A" grade.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

773 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