Version

AfterRibbonTabSelected Event

Occurs after the selected tab of the ribbon has been changed.
Syntax
'Declaration
 
Public Event AfterRibbonTabSelected As RibbonTabEventHandler
public event RibbonTabEventHandler AfterRibbonTabSelected
Event Data

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

PropertyDescription
Tab Returns the tab associated with the event.
Example
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinToolBars


Private Sub UltraToolbarsManager1_AfterRibbonTabSelected(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinToolbars.RibbonTabEventArgs) Handles UltraToolbarsManager1.AfterRibbonTabSelected
	Dim messageText As String = String.Format("The '{0}' ribbon tab has just been selected.", e.Tab.Key)
	Debug.WriteLine(messageText)
End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinToolBars;
using System.Diagnostics;

private void ultraToolbarsManager1_AfterRibbonTabSelected(object sender, RibbonTabEventArgs e)
{
	string messageText;
	if (e.Tab != null)
		messageText = string.Format("The '{0}' ribbon tab has just been selected.", e.Tab.Key);
	else 
		messageText = "No ribbon tab is selected.";

	Debug.WriteLine(messageText);
}
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