SpreadsheetGear 2023
ActiveTabChanging Event (WorkbookView)

SpreadsheetGear.Windows.Forms Namespace > WorkbookView Class : ActiveTabChanging Event
Occurs when the user is attempting to change the active tab and provides the ability to cancel the change.
<System.ComponentModel.DescriptionAttribute("Occurs when the active tab is about to change.")>
Public Event ActiveTabChanging As ActiveTabChangingEventHandler
Dim instance As WorkbookView
Dim handler As ActiveTabChangingEventHandler
AddHandler instance.ActiveTabChanging, handler
[System.ComponentModel.Description("Occurs when the active tab is about to change.")]
public event ActiveTabChangingEventHandler ActiveTabChanging
Event Data

The event handler receives an argument of type ActiveTabChangingEventArgs containing data related to this event. The following ActiveTabChangingEventArgs properties provide information specific to this event.

Gets or sets the value which specifies whether the event should be canceled.  
Returns the new sheet.  
Returns the new tab index.  

The ActiveTabChanging event is always invoked on the thread which created the workbook view control, and a lock is always acquired on the workbook set associated with the workbook view control before ActiveTabChanging is invoked.


Target Platforms: 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