TabbedMDIManager Events in Windows Forms TabbedMDI
3 Sep 2020 / 3 minutes to read
The list of events and a detailed explanation about each of them is given in the following sections.
Events table
TabbedMDIManager events | Description |
---|---|
BeforeMDIChildAdded event | This event is handled before an MDI child is added to the TabbedMDIManager. |
BeforeDropDownPopup event | This event is handled to set the visual drop-down styles for the drop-down button. |
TabControlAdded event | Using this event, the fonts of active and inactive tabs can be customized. |
TabControlAdding event | This event is handled when a tab control is added. |
TabControlRemoved event | This event is handled after a tab control is removed from a tab group. |
UnLockingMdIClient event | This event is handled to notify that the locked MDI client area is being unlocked. |
BeforeMDIChildAdded event
This BeforeMDIChildAdded event occurs before an MDIChild is added to the TabbedMDIManager.
private void tabbedMDIManager1_BeforeMDIChildAdded(object sender, MDIChildAddCancelEventArgs e)
{
MessageBox.Show(args.NewControl.ToString() + "is added!");
}
Private Sub tabbedMDIManager1_BeforeMDIChildAdded(ByVal sender As Object, ByVal e As MDIChildAddCancelEventArgs)
MessageBox.Show(args.NewControl.ToString() + "is added!")
End Sub
BeforeDropDownPopup event
This BeforeDropDownPopup events is discussed in DropDown Button topic.
TabControlAdded event
This TabControlAdded event is explained in how to customize the fonts of Active and Inactive Tabs topic under Frequently Asked Questions.
TabControlAdding event
This TabControlAdding event is handled when a tab control is added and it provides options to customize tab controls.
private void tabbedMDIManager1_TabControlAdding(object sender, TabbedMDITabControlEventArgs e)
{
MessageBox.Show(e.TabControl.Text.ToString());
}
Private Sub tabbedMDIManager1_TabControlAdding(ByVal sender As Object, ByVal e As TabbedMDITabControlEventArgs)
MessageBox.Show(e.TabControl.Text.ToString())
End Sub
TabControlRemoved event
This TabControlRemoved event is handled after a tab control is removed from a tab group.
private void tabbedMDIManager1_TabControlRemoved(object sender, TabbedMDITabControlEventArgs e)
{
MessageBox.Show(e.TabControl.Text.ToString());
}
Private Sub tabbedMDIManager1_TabControlRemoved(ByVal sender As Object, ByVal e As TabbedMDITabControlEventArgs)
MessageBox.Show(e.TabControl.Text.ToString())
End Sub
UnLockingMdIClient event
This UnLockingMdIClient event is handled to notify that the locked MDI client area is being unlocked.
private void tabbedMDIManager1_UnLockingMdiClient(object sender, EventArgs e)
{
Console.Write("UnlockingMDIClient event is Raised");
}
Private Sub tabbedMDIManager1_UnLockingMdiClient(ByVal sender As Object, ByVal e As EventArgs)
Console.Write("UnlockingMDIClient event is Raised")
End Sub
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page