473,508 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Treeview - Beginers Question - Retrieving .TAG info when node selected

Hi All,
I've populated a treeview with a few nodes, setting the '.TAG' property
for each node

When the user clicks on a node, how do I retrieve the value of the
'.TAG'. (also in which event should I place it)
TIA

Bill

Nov 20 '05 #1
2 2913
Private Sub TreeView1_AfterSelect(ByVal sender As System.Object, ByVal e As
_
System.Windows.Forms.TreeViewEventArgs) Handles TreeView1.AfterSelect
Dim s As String = e.Node.Tag()
End Sub
"Bill" <wf*****@optonline.net> wrote in message
news:8G*********************@news4.srv.hcvlny.cv.n et...
Hi All,
I've populated a treeview with a few nodes, setting the '.TAG' property
for each node

When the user clicks on a node, how do I retrieve the value of the
'.TAG'. (also in which event should I place it)
TIA

Bill

Nov 20 '05 #2
Hi Kirk,
Thanks for the help.

Bill

Kirk wrote:
Private Sub TreeView1_AfterSelect(ByVal sender As System.Object, ByVal e As
_
System.Windows.Forms.TreeViewEventArgs) Handles TreeView1.AfterSelect
Dim s As String = e.Node.Tag()
End Sub
"Bill" <wf*****@optonline.net> wrote in message
news:8G*********************@news4.srv.hcvlny.cv.n et...
Hi All,
I've populated a treeview with a few nodes, setting the '.TAG' property
for each node

When the user clicks on a node, how do I retrieve the value of the
'.TAG'. (also in which event should I place it)
TIA

Bill



Nov 20 '05 #3

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

Similar topics

2
274
by: Ed_P. | last post by:
Hello, I have a tree view with a few nodes, an example is illustrated below: Customer Info. Ticket History Misc. Notes The TreeView is on the left hand. I have figured out which node is...
6
6708
by: Tim | last post by:
Hi I have a form with a treeview on it. When I select a particular node it adds/shows a tab on the form. The treeview node remains selected as it should. The user can close the tab or remove the...
7
2811
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...
6
4913
by: L.M | last post by:
Hello, I knew how to use the treeview under VB6. After migrating to .NET, well, I'm lost. I try to add a new node, either to the same level or as a child to a selected node in the treeview....
3
2237
by: Shawn | last post by:
Hi. I'm working with the TreeView control in my ASP.NET 1.1 application. I have a problem I haven't been able to figure out. When I click on a node (not expand), whether it's a parent node, a...
6
11658
by: cyriel1920 | last post by:
Hi, I use the selectednodestyle with a white background so the user can see which item was chosen in the treeview navigation. The nodes have a navigateURL with a target to another frame....
4
9596
by: KarlM | last post by:
Hallo! I'm filling my treenode tv with AD-infos with the following code: ____________________________________________________________________ private enum AdImages { AdRoot, Ou, Container,...
8
12727
by: Matt MacDonald | last post by:
Hi All, I have a form that displays hierarchical categories in a treeview. Ok so far so good. What I was to do is have users be able to select a node in the treeview as part of filling out the...
1
2499
by: Tom | last post by:
Hey, I have a treeview control which i am reading and writing slots to (Its a player manager for Delta Force Black Hawk Down). At the moment, every 100ms it reads through the games memory to...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7124
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7046
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
7498
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
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3195
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.