From Xojo Documentation

Property (As Single )
aDesktopCheckbox.FontSize = newSingleValue
SingleValue = aDesktopCheckbox.FontSize

New in 2021r3

Supported for all project types and targets.

Size of the font used to display the caption.


If you enter zero as the FontSize, your app will use the font size that works best for the platform on which it is running.

Sample Code

This code (in any DesktopCheckBox event) sets the font size to 16 points.

Me.FontUnit = FontUnits.Point
Me.FontSize = 16