Thread: Question tree view
View Single Post
  #1 (permalink)  
Old 06-29-2009, 10:53 PM
twittumz twittumz is offline
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Jun 2009
Age: 20
Posts: 4
Reputation: 0
twittumz is on a distinguished programming path ahead
Default tree view

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.
Code:
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 by twittumz; 06-30-2009 at 8:14 AM.
Reply With Quote