collapse tree view on form open

  • Thread starter Thread starter iccsi
  • Start date Start date
I

iccsi

I have a tree view on the form and would like it collapse the tree
while form open.

Any suggestions are great appreciated,
 
You mean that the tree is collapsed when you open the form? Try something like:

place code below in the open form event:

dim i as integer
For i = 1 To treeview.Nodes.Count
treeview.Nodes(i).Expanded = True
Next

replace the treeview with your own treeview name

hth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top