[This is preliminary documentation and is subject to change.]

Represents type-safe event handler

Namespace: Tools
Assembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public delegate void ControlEventHandler<TControl, TEventArgs>(
	TControl source,
	TEventArgs e
)
where TControl : Control
where TEventArgs : EventArgs
Visual Basic
Public Delegate Sub ControlEventHandler(Of TControl As Control, TEventArgs As EventArgs) ( _
	source As TControl, _
	e As TEventArgs _
)
Visual C++
generic<typename TControl, typename TEventArgs>
where TControl : Control
where TEventArgs : EventArgs
public delegate void ControlEventHandler(
	TControl source, 
	TEventArgs e
)
F#
type ControlEventHandler = 
    delegate of 
        source:'TControl * 
        e:'TEventArgs -> unit
JScript
JScript does not support generic types or methods.

Parameters

source
Type: TControl
Control that caused the event
e
Type: TEventArgs
Event arguments

Type Parameters

TControl
Type of source
TEventArgs

[Missing <typeparam name="TEventArgs"/> documentation for "T:Tools.ControlEventHandler`2"]

See Also