Groups | Blog | Home
all groups > vb.net controls > february 2007 >

vb.net controls : When adding node I would like to enter Tag Info


Nach
2/23/2007 8:51:05 AM
TreeView1.Nodes(0).Nodes.Add("For this Node I would like to add Tag")
When adding node I would like to enter Tag Info or other attributes like
forecolor.

RobinS
2/23/2007 11:21:23 AM
You probably have to define the node, set its properties, and then add it
to the treeview.
I'd tell you how, but I only know how to do it in WPF (.Net 3.0)!

Maybe something like this but with the right keywords:

dim nd as TreeViewNode = New TreeViewNode()
nd.Tag = "Hello"

Treeview1.nodes(0).Nodes.Add(nd)


Robin S.
------------------------------------------
[quoted text, click to view]

AddThis Social Bookmark Button