开发者

C# -- How can I track what a user selects in a context menu?

I am working on a project which aims to gather data on students' writing styl开发者_StackOverflowes. One issue we are currently facing is the idea of context menus. Is there a way I can be notified when the user right clicks, and then clicks "copy," "paste," or any other option?

Thanks, Emily


I'm not sure I agree with your intended approach, but you might want to look into this article on Customizing Context Menus in Office.

If you were to remove all existing context menu offerings and provide your own which wrap those offerings, you can effectively hook into those commands as they're being executed.

That said, I'd like to ask what problem you're trying to solve with this approach; perhaps there's another way?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜