473,406 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Treeview - locate node from fullpath

Is there a way to locate a node on the Treeview by a node's fullpath
property? Thanks.
Nov 20 '05 #1
5 3070
* copyco <co****@anon.com> scripsit:
Is there a way to locate a node on the Treeview by a node's fullpath
property?


The 'FullPath' sometimes isn't unique for each node. Different nodes
can have the same 'FullPath'.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
Oh yeah. So I guess the answer is no. I used to be able to locate
treenodes in VB6 with string values because the nodes were indexed with
key values in string type, so I could make the keys the same as the
node's path. I wish I couldn't do something similar in VB.NET.
Herfried K. Wagner [MVP] wrote:
* copyco <co****@anon.com> scripsit:
Is there a way to locate a node on the Treeview by a node's fullpath
property?

The 'FullPath' sometimes isn't unique for each node. Different nodes
can have the same 'FullPath'.

Nov 20 '05 #3
* copyco <co****@anon.com> scripsit:
Oh yeah. So I guess the answer is no. I used to be able to locate
treenodes in VB6 with string values because the nodes were indexed
with key values in string type, so I could make the keys the same as
the node's path. I wish I couldn't do something similar in VB.NET.


You can add all the nodes to a 'Hashtable' by using a unique name as
key. Then you can access the nodes by key easily.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
Thank you very much. I've never heard of a 'Hashtable.' I will have to
research it. It will be something new for me to learn. Thanks.

Herfried K. Wagner [MVP] wrote:
* copyco <co****@anon.com> scripsit:
Oh yeah. So I guess the answer is no. I used to be able to locate
treenodes in VB6 with string values because the nodes were indexed
with key values in string type, so I could make the keys the same as
the node's path. I wish I couldn't do something similar in VB.NET.

You can add all the nodes to a 'Hashtable' by using a unique name as
key. Then you can access the nodes by key easily.

Nov 20 '05 #5
* copyco <co****@anon.com> scripsit:
Thank you very much. I've never heard of a 'Hashtable.' I will have
to research it. It will be something new for me to learn.


If you have any further questions on this topic, feel free to post them
here.

:-)

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: ThunderMusic | last post by:
Hi, while I'm searching into a treeview to find a specific node, I find the code duplicating treeview nodes I just can't figure out what's causing this behavior, maybe some of you already...
7
by: vsiat | last post by:
I am trying to create a treeview out of a database table with the typical structure ID, NAME, PARENTID, TYPE, EXTRA_INFO, where is linked to the . What I want to achieve is create a tree made...
13
by: André Nogueira | last post by:
Hi there. I know you can view a node's fullpath property, but is it posible to select a node using its path? Like, tell the treeview that the node that should be selected is the node with the...
3
by: L.M | last post by:
Hello, When doing a drag'n drop of a node in a treeview, is there an easy way to make sure that the destination is not a children (at any level) of the source ? Root: - A - B - C
7
by: amruta | last post by:
the code below dows not let me get the parent child view... all the nodes are show in one line only... also i need them to be collasped ... Thanks ..
1
by: Christian Rühl | last post by:
hey! what i wanna do sounds very simple at first, but it turned out to be a real bone crusher... i want to check if a treeView node is checked and if a correspondent node in my xml config file...
1
by: Christian Rühl | last post by:
hey! what i wanna do sounds very simple at first, but it turned out to be a real bone crusher... i want to check if a treeView node is checked and if a correspondent node in my xml config file...
1
by: saravanaVijayakumar | last post by:
I'm new to xml .. I had created a application such a way that I have to display the xml file in treeview control in C#.Net Application ... If I select the particular Node it should display the...
0
by: saravanaVijayakumar | last post by:
I'm new to xml .. I had created a application such a way that I have to display the xml file in treeview control in C#.Net Application ... If I select the particular Node it should display the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.