Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VB 6.0 - CommonDialog FLAGS Property
Message
From
18/11/1998 08:04:13
Jody Cairns
OAO Technology Solutions
Moncton, New Brunswick, Canada
 
 
To
17/11/1998 14:50:59
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00158433
Message ID:
00158683
Views:
14
>Can somebody in here tell me what's the reason why I have to initialize the Flags property of the CommonDialog control?
>
>I see I have to do that when I have to display the Font Dialog and the Color Dialog.

You don't have to set the Flags property when using the ShowColor method.
And from VB's Help file:

"Note You must set the Flags property to cdlCFScreenFonts, cdlCFPrinterFonts, or cdlCFBoth before displaying the Fonts dialog box. Otherwise, the error No Fonts Exist occurs."

Otherwise, the dialog wouldn't know what type of fonts to display.

Does that help?

best,

jody
Previous
Reply
Map
View

Click here to load this message in the networking platform