Is there anybody know how to select a node in treeview when right mouse button click?
Printable View
Is there anybody know how to select a node in treeview when right mouse button click?
Your question is not very clear.
If you right click on a treeview, the node will be selected any way.
otherwise.
Code:'in a mouse click event of an object
if button = vbRightButton then
TreeView1.Nodes(stKeyOfNode_OrIndex).Selected = True
end if