Occurs before the
System.Windows.Forms.Control.KeyDown event when a key is pressed while focus is on this control.
Syntax
Visual Basic (Declaration) | |
---|
<SRCategoryAttribute("Key")>
<SRDescriptionAttribute("Occurs before the KeyDown event when a key is pressed while focus is on this control.")>
Public Event PreviewKeyDown As PreviewKeyDownEventHandler |
C# | |
---|
[SRCategoryAttribute("Key")]
[SRDescriptionAttribute("Occurs before the KeyDown event when a key is pressed while focus is on this control.")]
public event PreviewKeyDownEventHandler PreviewKeyDown |
C++/CLI | |
---|
[SRCategoryAttribute("Key")]
[SRDescriptionAttribute("Occurs before the KeyDown event when a key is pressed while focus is on this control.")]
public:
event PreviewKeyDownEventHandler^ PreviewKeyDown |
Event Data
The event handler receives an argument of type PreviewKeyDownEventArgs containing data related to this event. The following PreviewKeyDownEventArgs properties provide information specific to this event.
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
See Also