How to change the MDI tab size
3 Sep 20201 minute to read
You should handle theTabControlAdded event handler and use ItemSize property to change the tab size.
// Handle the TabControlAdded event.
this.tabbedMDIManager.TabControlAdded += new TabbedMDITabControlEventHandler(tabbedMDIManager_TabControlAdded);
private void tabbedMDIManager_TabControlAdded(object sender, TabbedMDITabControlEventArgs args)
{
// To change the size.
args.TabControl.ItemSize = new Size(40, 40);
}
' Handle the TabControlAdded event.
AddHandler tabbedMDIManager.TabControlAdded, AddressOf tabbedMDIManager_TabControlAdded
Private Sub tabbedMDIManager_TabControlAdded(ByVal sender As Object, ByVal args As TabbedMDITabControlEventArgs)
' To change the size.
args.TabControl.ItemSize = New Size(40, 40)
End Sub