The Font dialog box allows the user to select a logical font attribute such as font family and associated font style, point size, effects (underline, strikeout, and text color), and a script (or character set).
We create and display a Font dialog box by initializing a CHOOSEFONT structure and passing the structure to the ChooseFont
function.
A typical Font Dialog Box is shown in the following screen shot.
To apply selected Font, Font Style and Size we can use the code:
To apply selected Colour from Font Dailog Box, First all set ShowColor
property to True
then, use the code:
To Show Apply Button on Font Daiog Box, gain to property window and set ShowApply
property to Ture
then, use the code:
We can use apply button for check selected Font , Font Style and Color etc on run time.
We use cookies to ensure you get the best experience on our website, if you continue to browse you'll be acconsent with our Cookies Policy.
Got it!