Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
MSDN Visual Basic Community
 
 
 
 
 
 
TitleLet the user select a TrueType font
Keywordsselect font, TrueType, common dialog
CategoriesControls, Graphics
 
Sometimes you need to use a TrueType font. For example, you can only rotate TrueType fonts. To let the user select only these fonts, set the cdlCFTTOnly value in the Common Dialog control's Flags property.
 
' Initialize the dialog's properties.
    ...
dlgFont.Flags = cdlCFScreenFonts Or cdlCFTTOnly
dlgFont.CancelError = True
On Error Resume Next
dlgFont.ShowFont
If Err = cdlCancel Then Exit Sub

' Use the dialog's properties.
    ...
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated