Solved

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

Posted on 2007-03-31
3
330 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
3 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 125 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

696 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