PRB: Source Control Tool Shows Font Property Deleted on Check-in
Article ID: 202145
Article Last Modified on 12/11/2003
APPLIES TO
- Microsoft Visual Basic 5.0 Learning Edition
- Microsoft Visual Basic 5.0 Professional Edition
- Microsoft Visual Basic 5.0 Enterprise Edition
- Microsoft Visual SourceSafe 4.0 Standard Edition
- Microsoft Visual SourceSafe 4.0a
- Microsoft Visual SourceSafe 5.0 Standard Edition
- Microsoft Visual SourceSafe 6.0 Standard Edition
This article was previously published under Q202145
SYMPTOMS
When you use a source code control tool such as Visual SourceSafe on a Visual Basic project, .frm files appear to lose font information for controls.
CAUSE
If a control's font matches the font of the parent form exactly, the font blocks are optimized out of the property definitions. When Visual Basic loads a control that does not contain a font block, the font property of the control is set to the font that is used by the control's parent form.
RESOLUTION
You can safely ignore a difference report that shows a missing font.
To avoid the problem, do one of the following:
- Set the Font property of the Form to a font or font size that is not used by the controls on the form.
- Set the Font property of each control at run time.
STATUS
This behavior is by design.
Keywords: kbprb kbideproject KB202145