Question tree view

twittumz

New member
Joined
Jun 29, 2009
Messages
4
Programming Experience
3-5
How would i go about making right click select a node as well as left click then bring up a context menu with the selected node?

this is what i got now but i don't like how it acts.
VB.NET:
Expand Collapse Copy
private sub treeview1_AfterSelect(ByVal sender as System.Object, ByVal e as system.windows.forms.treevieweventargs) handles treeview1.AfterSelect
ctextmenu.clear
if treeview1.selectednode.text = treeview1.topnode.text then exit sub
ctextmenu.add(treeview1.selectednode.text)
end sub
 
Last edited:
Back
Top