How to customize the fonts of active and inactive tabs
3 Sep 2020 / 1 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
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