code_junkie

Always handle the PreviewKeyDown event in a base form

Nov 12th, 2011
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. ToolStripMenuItem.Visible = false
  2.  
  3. foreach (Control control in this.Controls)
  4. {
  5. control.PreviewKeyDown += new PreviewKeyDownEventHandler(HandlePreviewKeyDown);
  6. }
Add Comment
Please, Sign In to add comment