Version

TabDisplayed Event

Event that occurs after the visibility of the Form of an MdiTab is changed to true and the MdiTab is displayed in an MdiTabGroup.
Syntax
'Declaration
 
Public Event TabDisplayed As MdiTabEventHandler
public event MdiTabEventHandler TabDisplayed
Event Data

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

PropertyDescription
Tab Returns the associated MdiTab
Remarks

MdiTab objects associated with non-visible forms are stored in the HiddenTabs collection and are not associated with a particular MdiTabGroup. When the associated Form is made visible, the tab is removed from the HiddenTabs and added to a MdiTabGroup. The TabDisplayed event is invoked after the tab has been added to a MdiTabGroup.

Example
The following sample demonstrates how to use the information passed to the TabDisplayed 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.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinTabs
Imports Infragistics.Win.UltraWinTabbedMdi

Private Sub ultraTabbedMdiManager1_TabDisplayed(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinTabbedMdi.MdiTabEventArgs) Handles ultraTabbedMdiManager1.TabDisplayed
    ' The 'TabDisplayed' event is invoked after an MdiTab
    ' in the HiddenTabs collection has been moved to an
    ' MdiTabGroup.
    '

    Dim msg As String = String.Format("TabDisplayed: {0}", e.Tab)

    System.Diagnostics.Debug.WriteLine(msg)
End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinTabs;
using Infragistics.Win.UltraWinTabbedMdi;

private void ultraTabbedMdiManager1_TabDisplayed(object sender, Infragistics.Win.UltraWinTabbedMdi.MdiTabEventArgs e)
{
	// The 'TabDisplayed' event is invoked after an MdiTab
	// in the HiddenTabs collection has been moved to an
	// MdiTabGroup.
	//
	
	string msg = string.Format("TabDisplayed: {0}", e.Tab);

	System.Diagnostics.Debug.WriteLine(msg);
}
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