Font Dialog Control in VB.NET


Font Dialog Control allows user to:
(1) Set Font Face
(2) Set Font Style
(3) Set Font Size
(4) Set Font Color
(5) Set Font Effects

Properties of Font Dialog Control in VB.NET



Property Purpose

AllowScriptChange

It is used to specify weather character set (script) can be changed in Font Dialog Control or not. It has Boolean value. Default value is true.

AllowVectorFonts

It is used to specify weather vector font can be selected in Font Dialog Control or not. It has Boolean value. Default value is true.

AllowVerticalFont

It is used to specify weather Vertical font can be selected in Font Dialog Control or not. It has Boolean value. Default value is true.

MaxSize

It is sued to specify Maximum Font Size that user can select from Font Dialog Control.

MinSize

It is sued to specify Minimum Font Size that user can select from Font Dialog Control.

Color

It is used to get color selected by user in the Font Dialog Control. User can also set the color in Font Dialog control using this property.

FixedPitchOnly

It is used to specify weather only Fixed Pitch font can be selected in the Font Dialog Control or not. It has Boolean value. Default value is false.

     

FontMustExist

It is used to specify weather an error will occur or not, if user selects the font that does not exist in the selection box. It has Boolean value. Default value is false.

Font

It is used to get the font selected in the Font Dialog Control. User can also set the font style in the Font Dialog Control.

ShowApply

It is used to specify weather Apply button will be shown in the Font Dialog Control or not. It has Boolean value. Default value is false.

ShowColor

It is used to specify weather color selection combo box will be shown in the Font Dialog Control or not. It has Boolean value. Default value is false.

ShowEffects

It is used to specify weather font effect options such as Underline, Strikeout and color selection will be shown in the Font Dialog Control or not. It has Boolean value. Default value is true.


Methods of Font Dialog Control in VB.NET



Method Purpose

ShowDialog

It is used to Show or run Font Dialog Control.                            

Reset

It is used to reset all the options of FontDialog to its default values.


Events of Font Dialog Control in VB.NET



Event Purpose

Apply

It is the default event of Font Dialog Control. It fires each time user clicks on Apply button of Font Dialog Control. It is used to apply font settings on selected text without closing Font Dialog Control.


Download Projects


Download Programs