You will need to create a custom treeview that inherits from TreeView.
You will also need to create a custom treeview node class that inherits from TreeNode.
Public Class TreeViewTest
Inherits TreeView
Public Overloads Property Nodes() As List(Of TreeViewNode)
End Class
Public Class TreeViewNode
Inherits TreeNode
Private m_iMyCustomNodeProperty As Integer
Public Property MyCustomNodeProperty As Integer
Get
Return m_iMyCustomNodeProperty
End Get
Set(value As Integer)
m_iMyCustomNodeProperty = value
End Set
End Property
End Class
Once your custom treeview class is complete you can use it in this manner.
Dim oMyCustomTree As New TreeViewTest
oMyCustomTree.Nodes(0).MyCustomNodeProperty = 1