Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

search text string in a textbox to find child-node in Treeview  VB.NET 2003

Posted on 2007-03-31
3
Medium Priority
?
340 Views
Last Modified: 2010-04-23
Hi Experts,

I wonder if you can help. I want to build a winForm with a Textbox and a Treeview control. If I type in "keyword" into the textbox and click "Find" button, then it will automatically collapse selected root-node and find the "keyword" child-node.

Is this possible? As I've searched for a solution and am a little lost...

Regards,
Roberto
0
Comment
Question by:RobertoFreemano
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 18828761
You need to loop through the Treeview (see "Select/Unselect all features" from http://www.emoreau.com/Entries/Articles/2006/04/The-Treeview-control.aspx) and when you find your node, you can use YourReferenceToYourFoundNode.EnsureVisible
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Suggested Courses

670 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