Solved

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

Posted on 2007-03-31
3
332 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this post we will learn different types of Android Layout and some basics of an Android App.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Introduction to Processes

734 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