![]() |
Click here to advertise with us
|
|
|||||||
| Listviews / Treeviews Anything related to listview and treeview components |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 9:14 AM. |
|
||||
|
You would handle the MouseDown event and call the GetNodeAt method to find the node that was clicked, then make that the SelectedNode.
__________________
![]() 2007, 2008, 2009, 2010 Why is my data not saved to my database? | Communicating between multiple forms MSDN: Data Walkthroughs | "How Do I?" Videos My Blog: Custom Events | Dynamic GDI+ Drawing |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|