hey all,
i'm building a custom control. it contains a treeview and a context menu. each tree node's context menu property is set to the control's context menu.
it works good...except.. .
if after right-clicking on a tree node, if you decide NOT to use any of the options and click OFF of the tree view...the context menu disappears (great!) but then the control no longer seems to process key strokes. it's like the context menu, tho no longer having focus, is still catching the key strokes.
if i right-click on another node and select an option from the context menu...the keys start working again.
any ideas on how to get the keys working if i pull up the context menu but do NOT select an option?
i feel like the answer to this puzzle must be very simple, for some reason...like a property on the context menu i need to set...or an event i need to handle.
thanks all.
i'm building a custom control. it contains a treeview and a context menu. each tree node's context menu property is set to the control's context menu.
it works good...except.. .
if after right-clicking on a tree node, if you decide NOT to use any of the options and click OFF of the tree view...the context menu disappears (great!) but then the control no longer seems to process key strokes. it's like the context menu, tho no longer having focus, is still catching the key strokes.
if i right-click on another node and select an option from the context menu...the keys start working again.
any ideas on how to get the keys working if i pull up the context menu but do NOT select an option?
i feel like the answer to this puzzle must be very simple, for some reason...like a property on the context menu i need to set...or an event i need to handle.
thanks all.
Comment