Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to Start TreeView  with only the Root Node Showing?

Posted on 2002-04-27
3
Medium Priority
?
164 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 200 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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

604 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