Visual Basic (Declaration) | |
---|---|
Public Delegate Sub KeyEventHandler( _ ByVal sender As Object, _ ByVal e As KeyEventArgs _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As New KeyEventHandler(AddressOf HandlerMethod) |
C# | |
---|---|
public delegate void KeyEventHandler( object sender, KeyEventArgs e ) |
C++/CLI | |
---|---|
public delegate void KeyEventHandler( Object^ sender, KeyEventArgs^ e ) |
Parameters
- sender
- e
Target Platforms: Microsoft .NET Framework 2.0