FIX: Common Dialog May Not Display the Current Font (154820)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q154820 SYMPTOMS
When you have set the common dialog controls FontName property, displaying
the Font common dialog can result in the selected font being blank.
CAUSE
The problem is caused by setting the FontName property before setting the
Flags property. It also occurs when the Flags property has already been
set.
RESOLUTION
Set the Flags property to 0 before setting the FontName property. Then set
the Flags property to the desired combination of flags after setting the
FontName property.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been fixed in Visual Basic
5.0.
Modification Type: | Minor | Last Reviewed: | 7/15/2004 |
---|
Keywords: | kbbug kbfix KB154820 |
---|
|