How to customize the fonts of active and inactive tabs
4 Feb 20251 minute to read
Using the TabControlAdded event, the fonts of active and inactive tabs can be customized.
// Handle the TabbedMDIManager's TabControlAdded event to get hold of
// the TabControlAdv associated with it.
this.tabbedMdiManager.TabControlAdded += new TabbedMDITabControlEventHandler(TabbedMDITabControl_Added);
private void TabbedMDITabControl_Added(object sender, TabbedMDITabControlEventArgs args)
{
args.TabControl.ActiveTabFont = new Font ("Comic Sans MS", 11);
args.TabControl.Font = new Font ("Italic", 12);
}' Handle the TabbedMDIManager's TabControlAdded event to get hold of
' the TabControlAdv associated with it.
Me.tabbedMdiManager.TabControlAdded += New TabbedMDITabControlEventHandler(TabbedMDITabControl_Added)
Private Sub TabbedMDITabControl_Added(ByVal sender As Object, ByVal args As TabbedMDITabControlEventArgs)
args.TabControl.ActiveTabFont = New Font("Comic Sans MS", 11)
args.TabControl.Font = New Font("Italic", 12)
End Sub