'Declaration
<SRCategoryAttribute("Key")> <SRDescriptionAttribute("Occurs before the KeyDown event when a key is pressed while focus is on this control.")> Public Event PreviewKeyDown As System.Windows.Forms.PreviewKeyDownEventHandler
'Usage
Dim instance As SubmitMenu Dim handler As System.Windows.Forms.PreviewKeyDownEventHandler AddHandler instance.PreviewKeyDown, handler
[SRCategory("Key")] [SRDescription("Occurs before the KeyDown event when a key is pressed while focus is on this control.")] public event System.Windows.Forms.PreviewKeyDownEventHandler PreviewKeyDown
Event Data
The event handler receives an argument of type System.Windows.Forms.PreviewKeyDownEventArgs containing data related to this event. The following PreviewKeyDownEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Alt | |
Control | |
IsInputKey | |
KeyCode | |
KeyData | |
KeyValue | |
Modifiers | |
Shift |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also