Visual Basic (Declaration) | |
---|---|
Public Delegate Sub StateChangedEventHandler( _ ByVal sender As Object, _ ByVal e As StateChangedEventArgs _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As New StateChangedEventHandler(AddressOf HandlerMethod) |
C# | |
---|---|
public delegate void StateChangedEventHandler( object sender, StateChangedEventArgs e ) |
C++/CLI | |
---|---|
public delegate void StateChangedEventHandler( Object^ sender, StateChangedEventArgs^ e ) |
Parameters
- sender
- The source of the event.
- e
- A StateChangedEventArgs object that contains the event data.
Represents the method that will handle an event that has received StateChangedEventArgs data. When the StateChangedEvent 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.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7