Inconsistent fonts in visual basic .net forms
Posted on 2011-03-19
I'm developing a VB.NET Windows system in Visual Studio 2008. I have several forms and would like all the text to adjust size using the autoscalemode=FONT property setting.
All of my forms have autoscalemode=FONT, and all components are set to a font size of 8 (same style) but some components are still staying the original size, no matter what. It appears to work fine on one or two screens, then not on others.
The only difference I can see is:
The components (labels, comboboxes, textboxes) that do not use the autoscalemode=FONT correctly (and default to the size 8 font) show their font property "bolded" in Visual Studio. (click the component, press F4, look at the font settings, the text is bolded)
The Form Font property is also bolded!
The components that are displaying correctly (at run time), are not bolded in Visual Studio. (The form property on these is not bolded.)
Also - I noticed:
In the Designer.vb files, the forms that show correctly ONLY have FONT set for the form - and it's the autoscalemode=font setting.
The other forms have font settings on all of the individual components.
Removing the individual Font settings from the designer did not work - they kept showing back up.
I need consistency across these forms (some of this even happens within the same form ..one component adjusts, the others stay small).
All form components are set to the exact same font style and size.
All forms are set to autoscalemode=FONT.
Is there a property somewhere that overrides the autoscalemode=FONT, that I am missing??
Is this an oddity in Visual Studio 2008? Is there a fix?
I'd appreciate any input - this needs to go on the user's machine THIS week!
Thanks in advance,