Click to See Complete Forum and Search --> : property to a tree node
karthikeyam
April 27th, 2006, 05:03 AM
is there any property in vs.nt 2005 to add extra data to a tree node
there is a property in vs.net 2003 called "nodedata" to do so?
please help its urgent
kebo
April 27th, 2006, 10:06 AM
you can easily create your own tree node like this
Class MyNode
Inherits TreeNode
Private _MyData As String
Public Property MyData() As String
Get
Return _MyData
End Get
Set(ByVal Value As String)
_MyData = Value
End Set
End Property
End ClassThen use MyNode instead of using a standard tree node. Beyond that the only other thing I can think of is the TAG property
HTH
kevin
jhammer
April 27th, 2006, 12:16 PM
The class TreeNode has a Tag property (of type object). you can use this to attach any object you want to each node.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.