Tab Alignment in Windows Forms TabbedMDI
3 Sep 2020 / 1 minute to read
The tabs in the TabbedMDI layout can be aligned to the Top, Left, Right, and Bottom of the form using the Alignment property. To access the Alignment property, you should use the TabControlAdded event. This event is fired to let the user configure the tab appearance and behavior.
1. Call the TabControlAdded event in the form’s constructor.
this.tabbedMDIManager.TabControlAdded += new TabbedMDITabControlEventHandler(tabbedMDIManager_TabControlAdded);
AddHandler tabbedMDIManager.TabControlAdded, AddressOf tabbedMDIManager_TabControlAdded
2. Set the Alignment property of Tab Control using the TabbedMDITabControlEventArgs.
private void tabbedMDIManager_TabControlAdded(object sender, TabbedMDITabControlEventArgs args)
{
args.TabControl.Alignment=TabAlignment.Bottom;
}
Private Sub tabbedMDIManager_TabControlAdded(ByVal sender As Object, ByVal args As TabbedMDITabControlEventArgs)
args.TabControl.Alignment = TabAlignment.Bottom
End Sub
See Also
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