Skip to content

Font Property

Description

The Font property is used to set or retrieve the font used to display the caption of tab buttons.

Property Type

  • Read-write property

Syntax (Visual Basic)

Public Property Font() As Font

Example

Changing the font of the tab buttons (Visual Basic)

This sample illustrates how to change the font used in the tab buttons.

' The following illustrates how to change the font used for the tab button captions.

Dim TextFont As StdFont  
Set TextFont = New StdFont  
TextFont.Name = "Arial"  
TextFont.Size = 15  
TextFont.Bold = True  

Set wndTabControl.PaintManager.Font = TextFont  

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.