Mr.Grim Posted July 3, 2007 Posted July 3, 2007 Hey Everyone, I'm going crazy because I can't figure out hot to add a hotkey field in my Visual C# program. In C++, all I would have to do is add a Dialog resource and then under the Dialog Editor there would be HotKey Field right there. I can't seem to figure out how to add a Dialog resource in C#, or where to find the Hotkey component. By Hotkey Field, I mean the little box that is like a text box, except it recognizes hotkeys. Like when you hold down control and hit a Q, it would show as CTRL+Q. Does anyone know how to add one of these with Visual C#?? Share this post Link to post Share on other sites More sharing options...
UMTopSpinC7 Posted August 9, 2007 Posted August 9, 2007 You mean functionality like when you type Control-S and it saves a document in Word? If not then sorry, I don't know what you're asking. You can do that like this: System.Windows.Forms.MenuItem saveMenuItem = new System.Windows.Forms.MenuItem(); saveMenuItem.Shortcut = System.Windows.Forms.Shortcut.CtrlS; Share this post Link to post Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now