How do I make tree view child nodes appear upon form load?

Hi, how do I make the child nodes available for viewing upon loading of the form?  C# .NET 2005
child-nodes-shown.JPG
0nepieceAsked:
Who is Participating?
 
HainKurtSr. System AnalystCommented:
find the item "New" and set expanded to true
0
 
0nepieceAuthor Commented:
Thanks. I made use of the ExpandAll() function of the treeview. I tried to find the 'Expand' property of the node in the properties pane yet I wasn't able to. I was able to access it within the initialize component function. I don't understand why it is only accessible there.
0
 
HainKurtSr. System AnalystCommented:
http://msdn.microsoft.com/en-us/library/system.windows.forms.treenode.isexpanded.aspx

after finding the node, you can do this:

NodeNew.Expand();
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.