VB6 and font size changing by itself

Associate
Joined
26 Feb 2004
Posts
971
Location
China (Qinhuangdao)
I have a program which uses a font of MS Sans Serif, point size 8. All the boxes display correctly on my desktop computer, at resolution 1680x1050, under Windows 7 Professional (64 bit) and Windows XP.

It also works fine on my desktop running Windows Vista at resolution 1280x800.

However, when I run this on a colleagues laptop running VB6 on his Windows 7 Professional (32 bit) laptop to find the problem - all text boxes, captions, buttons, datagrids etc. have changed the font to MS Sans Serif size 10. When I try to manually change it back to 8 (I have hundreds of boxes, so I only tried several) There was no option to select size 8 - the smallest was size 10.

I'm very confused why this has happened, and can only think that the MS Sans Serif font is somehow different on his version of Windows. Do you think this is possible? I really don't want to have to change all the boxes to a larger font, it will take me ages?

Any suggestions?
 
In windows you can adjust the font size globally (as a percentage) you normally do this on high resolution screens, to make things more readable.

So your app has it's font sizes overrriden. I'm not sure of a solution to this one though.
 
Actually, I managed to get it to work by copying my version of MS Sans Serif across to his laptop. After rebooting, everything displays correctly! I find it a little strange that there was no size 8 on his Win7 installation.
 
Back
Top Bottom