Occurs when a key is pressed while the control has focus.
Syntax
Visual Basic (Declaration) | |
---|
<SRCategoryAttribute("Key")>
<SRDescriptionAttribute("Occurs when the control has focus and the user presses and releases a key.")>
Public Event KeyPress As KeyPressEventHandler |
C# | |
---|
[SRCategoryAttribute("Key")]
[SRDescriptionAttribute("Occurs when the control has focus and the user presses and releases a key.")]
public event KeyPressEventHandler KeyPress |
C++/CLI | |
---|
[SRCategoryAttribute("Key")]
[SRDescriptionAttribute("Occurs when the control has focus and the user presses and releases a key.")]
public:
event KeyPressEventHandler^ KeyPress |
Event Data
The event handler receives an argument of type KeyPressEventArgs containing data related to this event. The following KeyPressEventArgs 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