Is there a way to force always show mnemonics in menus?

百般思念 提交于 2019-12-01 01:15:40

That is an operating system setting:

Control Panel\All Control Panel Items\Ease of Access Center\Make the keyboard easier to use\Make it easier to use keyboard shortcuts\Underline keyboard shortcuts and access keys.

Change the way the context menu is invoked. Don't show it manually, instead use something like:

textBoxSomething.ContextMenuStrip = yourContextMenuStrip;

In this case, if the user right-click on the text box (or other control you use), he will get the menu without mnemonics. But if he uses the keyboard context-menu-button to show the context menu, the mnemonics will be shown.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!