LEADTOOLS Multimedia (Leadtools.Multimedia assembly) Send comments on this topic. | Back to Introduction | Help Version 17.0.3.22
KeyPressEventHandler Delegate
See Also 
Leadtools.Multimedia Namespace : KeyPressEventHandler Delegate



sender
The source of the event.
e
A KeyPressEventArgs object that contains the event data.
Represents the method that will handle an event that has received KeyPressEventArgs data.

Syntax

Visual Basic (Declaration) 
Public Delegate Sub KeyPressEventHandler( _
   ByVal sender As Object, _
   ByVal e As KeyPressEventArgs _
) 
Visual Basic (Usage)Copy Code
Dim instance As New KeyPressEventHandler(AddressOf HandlerMethod)
C# 
public delegate void KeyPressEventHandler( 
   object sender,
   KeyPressEventArgs e
)
C++/CLI 
public delegate void KeyPressEventHandler( 
   Object^ sender,
   KeyPressEventArgs^ e
)

Parameters

sender
The source of the event.
e
A KeyPressEventArgs object that contains the event data.

Remarks

Represents the method that will handle an KeyPressEvent event that has received KeyPressEventArgs data. When the KeyPressEvent event is raised in a toolkit object, any subscribed event handlers in your code will be called. See the Microsoft documentation on .NET Events and Delegates for more information about .NET delegates and events.

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