LEADTOOLS Medical (Leadtools.Medical3D assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
KeyPress Event
See Also 
Leadtools.Medical3D Namespace > Medical3DControl Class : KeyPress Event



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
Visual Basic (Usage)Copy Code
Dim instance As Medical3DControl
Dim handler As KeyPressEventHandler
 
AddHandler instance.KeyPress, handler
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.

PropertyDescription
Handled Gets or sets a value indicating whether the System.Windows.Forms.Control.KeyPress event was handled.
KeyChar Gets or sets the character corresponding to the key pressed.

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

Leadtools.Medical3D requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features