Spread Windows Forms 9.0 Product Documentation
KeyPress Event


Occurs when a character key is pressed.
Syntax
'Declaration
 
Public Event KeyPress As KeyPressEventHandler
'Usage
 
Dim instance As DropDownEditor
Dim handler As KeyPressEventHandler
 
AddHandler instance.KeyPress, handler
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.

PropertyDescription
HandledGets or sets a value indicating whether the System.Windows.Forms.Control.KeyPress event was handled.  
KeyCharGets or sets the character corresponding to the key pressed.  
Remarks
This event is raised when a key is pressed.
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

DropDownEditor Class
DropDownEditor Members

 

 


Copyright © GrapeCity, inc. All rights reserved.