'宣言 Public Event TabSelected As MdiTabEventHandler
public event MdiTabEventHandler TabSelected
イベント ハンドラが、このイベントに関連するデータを含む、MdiTabEventArgs 型の引数を受け取りました。次の MdiTabEventArgs プロパティには、このイベントの固有の情報が記載されます。
TabSelected は、タブが選択された後に呼び出されます。
Imports Infragistics.Win Imports Infragistics.Win.UltraWinTabs Imports Infragistics.Win.UltraWinTabbedMdi Private Sub ultraTabbedMdiManager1_TabSelected(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinTabbedMdi.MdiTabEventArgs) Handles ultraTabbedMdiManager1.TabSelected ' The 'TabSelected' event is invoked after the SelectedTab ' of an MdiTabGroup has changed. ' The 'Tab' parameter returns the MdiTab that was selected. ' Dim msg As String = String.Format("TabSelected: Tab ['{0}'] was selected in tab group ['{1}']", e.Tab, e.Tab.TabGroup) System.Diagnostics.Debug.WriteLine(msg) End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinTabs; using Infragistics.Win.UltraWinTabbedMdi; private void ultraTabbedMdiManager1_TabSelected(object sender, Infragistics.Win.UltraWinTabbedMdi.MdiTabEventArgs e) { // The 'TabSelected' event is invoked after the SelectedTab // of an MdiTabGroup has changed. // The 'Tab' parameter returns the MdiTab that was selected. // string msg = string.Format("TabSelected: Tab ['{0}'] was selected in tab group ['{1}']", e.Tab, e.Tab.TabGroup); System.Diagnostics.Debug.WriteLine(msg); }