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

Posted on 2009-12-28
Last Modified: 2013-12-17
Hi, how do I make the child nodes available for viewing upon loading of the form?  C# .NET 2005
Question by:0nepiece
    LVL 51

    Accepted Solution

    find the item "New" and set expanded to true

    Author Closing Comment

    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.
    LVL 51

    Expert Comment


    after finding the node, you can do this:


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
    Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now