invoke a context menu

  • Thread starter Thread starter Tomas Deman
  • Start date Start date
T

Tomas Deman

Hi,

I want to invoke a context menu on a Treenode when the user presses
SHIFT-F10.
How should I proceed?
The default behavior in dotnet seems that the Mainmenu gets selected when
the user presses SHIFT-F10. How can I disable this behavior?
 
I haven't tested this but what about registering an IMessageFilter that
checks for the Shift+F10 key combination. Then when detected, you can
consume this message and call the appropriate ContextMenu's Show method.

--
Tim Wilson
..Net Compact Framework MVP

<Feedback>
Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
</Feedback>
 
I can't reproduce that. On my machine Shift+F10 correctly
invokes the context menu. In fact, on every machine I've tried
and with any version of the framework, Shift+F10 correctly
invokes the context menu


/claes
 
Thanks for suggestion

Tim Wilson said:
I haven't tested this but what about registering an IMessageFilter that
checks for the Shift+F10 key combination. Then when detected, you can
consume this message and call the appropriate ContextMenu's Show method.

--
Tim Wilson
.Net Compact Framework MVP

<Feedback>
Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
</Feedback>
 
Back
Top