Tab Alignment in Windows Forms TabbedMDI

29 Apr 20211 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)



Private Sub tabbedMDIManager_TabControlAdded(ByVal sender As Object, ByVal args As TabbedMDITabControlEventArgs)

		args.TabControl.Alignment = TabAlignment.Bottom

		End Sub

Tabs alignment

See Also

MDI List