Version

ChangedEventHandler Delegate

/// Delegate for the ChangedEventHandler
Syntax
'Declaration
 
Public Delegate Sub ChangedEventHandler( _
   ByVal sender As Object, _
   ByVal e As EventArgs _
) 
public delegate void ChangedEventHandler( 
   object sender,
   EventArgs e
)

Parameters

sender
e
Example
The following sample code illustrates some of the information available in the AfterDelete event.

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

Private Sub ultraTree1_AfterDelete(ByVal sender As Object, ByVal e As System.EventArgs) Handles ultraTree1.AfterDelete

    Debug.WriteLine("Nodes have been deleted.")

    If Me.ultraTree1.ActiveNode Is Nothing Then
        Debug.WriteLine("    No active node.")
    Else
        Debug.WriteLine("    Active node is " + Me.ultraTree1.ActiveNode.Key)
    End If

End Sub
private void ultraTree1_AfterDelete(object sender, System.EventArgs e)
{

	Debug.WriteLine( "Nodes have been deleted." );
	if ( this.ultraTree1.ActiveNode == null )
		Debug.WriteLine( "    No active node." );
	else
		Debug.WriteLine( "    Active node is " + this.ultraTree1.ActiveNode.Key );

}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also