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: 166
  • Last Modified:

How to Start TreeView with only the Root Node Showing?

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
eeevbeee
Asked:
eeevbeee
  • 2
1 Solution
 
Richie_SimonettiIT OperationsCommented:
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
 
eeevbeeeAuthor Commented:
yes, you are right, I had EnsureVisible set.
0
 
Richie_SimonettiIT OperationsCommented:
Yeah, that was my first thougth too.
Thanks for "A" grade.
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

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