B Benjamin Cauldwell Sep 11, 2003 #1 How do I perform an action when the Control button and the F Key are pressed at the same time?
H Herfried K. Wagner [MVP] Sep 11, 2003 #2 Hello, Benjamin Cauldwell said: How do I perform an action when the Control button and the F Key are pressed at the same time? Click to expand... Add a hidden MainMenu control and define Ctrl+F as 'Shortcut' for an item.
Hello, Benjamin Cauldwell said: How do I perform an action when the Control button and the F Key are pressed at the same time? Click to expand... Add a hidden MainMenu control and define Ctrl+F as 'Shortcut' for an item.
U Ulrich Sprick Sep 12, 2003 #4 Hi Benjamin, in your form, override protected bool ProcessCmdKey( ref System.Windows.Forms.Message msg, Keys keydata ) { if ( keydata == (Keys.F | Keys.Control) ) { Console.WriteLine( "Yeah" ); } return base.ProcessCmdKey( ref msg, keydata ); } regards, Ulrich
Hi Benjamin, in your form, override protected bool ProcessCmdKey( ref System.Windows.Forms.Message msg, Keys keydata ) { if ( keydata == (Keys.F | Keys.Control) ) { Console.WriteLine( "Yeah" ); } return base.ProcessCmdKey( ref msg, keydata ); } regards, Ulrich