Results 1 to 4 of 4

Thread: [RESOLVED] TreeView - get expanded node

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Posts
    146

    Resolved [RESOLVED] TreeView - get expanded node

    Code:
     public void treeView1_AfterExpand(object sender, TreeViewEventArgs e)
    {
              
    }
    How do I get the expanded node of the tree? (The node that the user expands)
    Last edited by winterslam; Jun 30th, 2009 at 01:18 AM.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: TreeView - get expanded node

    As is the case with all events, the 'e' parameter contains the data for the event. If you'd read the documentation you'd know that because it provides a code example. ALWAYS read the relevant documentation first when you have a question.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Posts
    146

    Re: TreeView - get expanded node

    Thanks..
    Noted

    My apology.


    I'm pretty new to .NET

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: TreeView - get expanded node

    Quote Originally Posted by winterslam View Post
    I'm pretty new to .NET
    That's more reason to read the documentation, not less. You're far from the only person not to but it seems that using the Help menu in VS is the last thing that a lot of beginners think of when they need help. As the name suggests, it should be the first.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width