CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 1999
    Posts
    24

    combobox 'n treeview question

    I have a combobox called cboNavigate and a treeview called tvwTree. When I click nodes in the treeview the combobox displays the fullpath. Now I want to implement that the user can type in a treeview path in cboNavigate and press enter and that the treeview will jump to the right possition.
    f.i I type: "Sales, Sales dossiers, Communications" (without quotes) and press enter the treeview jumps to the Communications node in the threeview. (The pathseparator is as you can see ", ")

    Anybody knows how to do this ??




  2. #2
    Join Date
    Oct 1999
    Posts
    63

    Re: combobox 'n treeview question

    Treeview has a nodes collection. If you have the path as Key to each node in the collection, then just you can pass KEY to the collection to retrieve the node and with the retrieved node you can set the node as selected.


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

Featured