Solved

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

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

895 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now