VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Select a node in a treeview control programatically. No api required. Simply pass the fullPath info

by James McGuire (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Tue 20th May 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Select a node in a treeview control programatically. No api required. Simply pass the fullPath information to it and the correct node will be

Rate Select a node in a treeview control programatically. No api required. Simply pass the fullPath info



Dim t_node As node
'----------Procedure Code Starts ------------------
' strPath in this case is the FullPath
For Each t_node In TreeView1.Nodes
If t_node.FullPath = strPath Then
TreeView1.Nodes(t_node.Index).Selected = True
End If
Next t_node
'----------Procedure Code Ends ------------------

End Sub



Download this snippet    Add to My Saved Code

Select a node in a treeview control programatically. No api required. Simply pass the fullPath info Comments

No comments have been posted about Select a node in a treeview control programatically. No api required. Simply pass the fullPath info. Why not be the first to post a comment about Select a node in a treeview control programatically. No api required. Simply pass the fullPath info.

Post your comment

Subject:
Message:
0/1000 characters