C
Claire
I've a treeview control containing a root node with several children on a
windows form.
I select a node with a left mouse button click.
I then select one of the other nodes with right mouse click to bring up my
context menu. The Popup event of this enables menu items depending on the
node selected.
The new node highlights, and my context menu pops up but I noticed that the
enabled state of the menu items was incorrect.
Tracing into my treecontextmenu_popup event the tree.selectednode is wrongly
shown to be the old node and not the new one. But the new one is
highlighted.
Has anyone got a solution to this please?
(Hideselection = false. Hottracking = false, drawmode=normal)
windows form.
I select a node with a left mouse button click.
I then select one of the other nodes with right mouse click to bring up my
context menu. The Popup event of this enables menu items depending on the
node selected.
The new node highlights, and my context menu pops up but I noticed that the
enabled state of the menu items was incorrect.
Tracing into my treecontextmenu_popup event the tree.selectednode is wrongly
shown to be the old node and not the new one. But the new one is
highlighted.
Has anyone got a solution to this please?
(Hideselection = false. Hottracking = false, drawmode=normal)