Windows Develop Bookmark and Share   
 index > Windows Forms Designer > IsInputKey
 

IsInputKey

I've a datagrid with 2 DataGridTextBoxColumns. In both I need Enter key to rise event (best suitable would be KeyDown). To do that I need to override IsInputKey method from TextBox which is part of DataGridTextBoxColumn. How to do that?
In online documentation I've found such sentense:
<i>Certain keys, such as the TAB, RETURN, ESCAPE, and arrow keys are handled by controls automatically. In order to have these keys raise the KeyDown event, you must override the IsInputKey method in each control on your form.</i>
Is that meaning that I really have to override IsInputKey for <b>all</b> controls on the form? I've overrided this method for form only, but it has no effect.
MigrationUser 1  Friday, January 02, 2004 3:02 AM
You can change the paradigm around a bit and set the KeyPreview property of your form.  Then you'll get to preview all key messages using the normal key event handlers before other controls on the form do.
MigrationUser 1  Friday, January 02, 2004 9:10 AM

You can use google to search for other answers

Custom Search

More Threads

• Inherited controls and design view
• showing details in tree and editing it in windows form-very very urgent
• Custom Control: How to move?
• Moving controls doesn't work after migrating to VS2005
• DataGridView Calender Column
• Access Keys do not display correctly
• Autocomplete on axWebbrowser
• Problem with Windows Forms Designer...
• How to hide properties in a custom control
• Windows Form Designer generated code