Does your form have KeyPreview property set to true?
Form.KeyPreview Property
Gets or sets a value indicating whether the form will receive key
events before the event is passed to the control that has focus.
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.keypreview.aspx
More Related Contents:
- Question about terminating a thread cleanly in .NET
- Make an Installation program for C# applications and include .NET Framework installer into the setup
- Word wrap for a label in Windows Forms
- How do I get the title of the current active window using c#?
- How to compare two rich text box contents and highlight the characters that are changed?
- How to get the “friendly” OS Version Name?
- Windows Forms Splash Screen – Show a form while loading main form
- Single-assembly multi-language Windows Forms deployment (ILMerge and satellite assemblies / localization) – possible?
- TabControl with Close and Add Button
- Application.Exit
- How can a Label control display Japanese characters properly when the Font used doesn’t support this language?
- How can I draw a rounded rectangle as the border for a rounded Form?
- Pass click event of child control to the parent control
- Hiding unwanted properties in custom controls
- Remove the title bar in Windows Forms
- C#: How to add subitems in ListView
- Process.Start to open an URL, getting an Exception?
- Remove Row inside TableLayoutPanel makes a layout problem
- Synchronize Scroll Position of two RichTextBoxes?
- How to create a Button that can send keys to a conrol without losing focus – Virtual Keyboard
- BindingList.Sort() to behave like a List.Sort()
- WinForms DataGridView – databind to an object with a list property (variable number of columns)
- How do I prevent print screen
- Prevent from displaying of Windows Security window
- How to exit all running threads?
- How do I minimize a WinForms application to the notification area?
- Custom Color Palette in Visual Studio Color Property Editor
- Remove top and bottom padding from Text drawn on an Image
- Validating user input / Give .NET controls status OK or NOK
- How do I get a directory size (files in the directory) in C#?