I’m building a Windows Forms application where I have a menuStrip and a toolStripMenuItem called ‘Preferences’, that is self-explanatory for opening a preferences form.
The problem is that I have bound the shortcut key for that item to Ctrl + P which opens the printer dialog, which I assume is defaulted in all Windows Forms forms.
Is there any way to disable that the printer dialog overwrites my shortkey?
When naming the “Preferences” menu item, just put an ampersand (&) in front of the P. You’ll end up with Alt instead of Ctrl for your shortcut key, but Visual Studio will wire everything up for you.