M
Milosz - [playseven.com]
Dim hIP As TreeNode
hIP = New TreeNode("Peter")
Dim myNodeCollection As TreeNodeCollection = Me.treeResults.Nodes
If Not myNodeCollection.Contains(hIP) Then
Me.treeResults.Nodes.Add(hIP)
Else
hIP = treeResults.Nodes(Me.treeResults.Nodes.IndexOf(hIP))
End If
calling this code twice, it is not recognized that Peter is already added
so how determine that peter is already added ?
--
-> Milosz Weckowski
www.playseven.com
mailto:[email protected]
ICQ Number: 84867613
Get the enhanced Progressbar and a fine Colorpicker for the Compact Framwork for free:
http://www.playseven.com/11620/p7_Controls.html
hIP = New TreeNode("Peter")
Dim myNodeCollection As TreeNodeCollection = Me.treeResults.Nodes
If Not myNodeCollection.Contains(hIP) Then
Me.treeResults.Nodes.Add(hIP)
Else
hIP = treeResults.Nodes(Me.treeResults.Nodes.IndexOf(hIP))
End If
calling this code twice, it is not recognized that Peter is already added
so how determine that peter is already added ?
--
-> Milosz Weckowski
www.playseven.com
mailto:[email protected]
ICQ Number: 84867613
Get the enhanced Progressbar and a fine Colorpicker for the Compact Framwork for free:
http://www.playseven.com/11620/p7_Controls.html