Solved

How to Start TreeView  with only the Root Node Showing?

Posted on 2002-04-27
3
162 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 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

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…

688 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