SftTabs/NET 6.0

SwitchingEventHandler Delegate

Softel vdm, Inc.

Represents the method that will handle the Switching and SwitchingDisabled events.

Syntax      SftTabs Class (Softelvdm.SftTabsNET)

VB   

Public Delegate Sub SwitchingEventHandler( _
     ByVal sender As Object, _
     ByVal e As SwitchingEventArgs )

C#   

public delegate void SwitchingEventHandler(
     object sender,
     SwitchingEventArgs e );

C++   

public: delegate void SwitchingEventHandler(
     Object^ sender,
     SwitchingEventArgs^ e );

e

A SwitchingEventArgs that contains the event data.

sender

The source of the event.

The declaration of your Switching event handler must have the same parameters as the SwitchingEventHandler delegate declaration.

Comments

The SwitchingEventHandler delegate represents the method that will handle the Switching event.

A SwitchingEventHandler delegate is created by an application to identify the method that will handle the Switching event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about handling events with delegates, see Handling and Raising Events (.NET Documentation).

This event occurs as tabs are about to be switched. Using this event handler, an application can prevent tab switching (see SwitchingEventArgs.Allow) or switch to another tab instead (SwitchingEventArgs.NextTab).

A SwitchingEventHandler delegate is created by an application to identify the method that will handle the Switching event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about handling events with delegates, see Events and Delegates.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com