Right clicking on treeview node won't select it so contextmenus don't work right
-
Hi. I'm making a treeview and the items on it are dynamically assigned a context menu and info about the node is used in an operation from the menu. My code works fine except if you left click item 1, then right click item 2, it opens the menu as if item 1 was selected. It only works correctly if you left click item 2 before right clicking it. Any way to fix this?
Have you tried the Krypton Toolkit? http://www.componentfactory.com/free-windows-forms-controls.php
-
Hi. I'm making a treeview and the items on it are dynamically assigned a context menu and info about the node is used in an operation from the menu. My code works fine except if you left click item 1, then right click item 2, it opens the menu as if item 1 was selected. It only works correctly if you left click item 2 before right clicking it. Any way to fix this?
Have you tried the Krypton Toolkit? http://www.componentfactory.com/free-windows-forms-controls.php
-
use the context menu property of the treeview. bah10z