Form preserves normal font size with large fonts on XP, not on 200

G

Guest

Hello,

We have Windows Forms that we've designed using the Windows XP "normal" font
size. When we run our app on an XP machine with "normal" fonts selected,
everything looks fine; furthermore, if we then leave our app running and, on
the fly, change the font size to "large fonts" or "extra large fonts", the
fonts inside our form remain at normal size, which is exactly what we want.

However, if we then run the same app and repeat the same exercise on a
Windows 2000 machine, the fonts inside our form scale according to the chosen
font size, resulting in an ugly appearance, which is what we do not want.
Can anyone clarify why the behavior of our forms' fonts differs between WinXP
and Win2000?

Thanks!
 
J

Jeffrey Tan[MSFT]

Hi Whitney,

Thanks for your posting!

Does your "normal" font apply to the form's client text or the caption bar
text? How do you apply the "normal" font for it? Also, where do you change
the system font size? In "Display properties" dialog's "Appearance" tabpage
or "settings" tabpage's "Advanced"->General tabpage? These information may
help us clarify the problem better.

I have done some test for you for this situation in both Win2000 and WinXP.
In my WinXP machine, I change the system font in "Display properties"
dialog's "Appearance" tabpage, and the text on the form's client area does
not change at all, but the caption font really changes to the large font.
In another Win2000 machine, it seems that "Display properties" dialog's
"Appearance" tabpage's font dropdownlist is disabled, so I change the
system font size in "settings" tabpage's "Advanced"->General tabpage, the
behavior result the same as WinXP machine only the caption text changes to
large size.

So it seems that I can not reproduce out your issue. For the form's client
area text, because the text is set by the developer, we have specified the
text font at a certain font explicitly, so I think it will not change with
the system font change.

More information is welcomed for this issue.
==================================================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
S

saurabh

If you do not want the form to change its size depending on resolution. Set
the AutoScale property to false but I will recommend against it as it may
wrap text within labels and radio buttons and it will look wierd!!

--Saurabh
 
G

Guest

Hi Jeffrey,

To answer your questions...

Regarding our "normal" font, I'm referring to the form's client text, not
the caption text. When I change the font size, the caption text does indeed
change, which is fine; that's not a problem.

1. On WinXP, in the Display Properties dialog, I click the Appearance tab
and change the Font Size selection. When I do that, our app's client text
remains the same size, which is what we want.

2. On Win2000, there doesn't seem to be an equivalent method of changing the
fonts as I described above in WinXP (am I missing something??), so in the
Display Properties dialog, I click the Settings tab, click Advanced, click
the General tab, and change the Font Size selection. When I do this, it
installs the new fonts if necessary, asks me to reboot, and when I'm able to
bring up my app again, the client text is too big. This is not what we want.

3. On WinXP, the equivalent of the undesirable Win2000 behavior I described
above is to click the Settings tab, click Advanced, click the General tab,
and change the DPI setting.

So, I guess my real question is this: Is there a Win2000 equivalent of the
WinXP Display Properties->Appearance->Font Size functionality?

Thanks!
 
J

Jeffrey Tan[MSFT]

Hi Whitney,

Thanks very much for your feedback!!

Yes, I have tested the Win2000 OS through Virtual PC on my machine. The
entire form font will be changed after restart the OS.

Actually, the setting in "Appearance" tabpage is to change the system font
size, so the user specified font size will not change at all.
While the setting in "Advanced"->General tabpage is to change the DPI(dots
per inch) of the system display, so althrough the font size did not change,
the display size is changed.

Yes, I agree with you that now, the question lies on:
Is there a Win2000 equivalent of the WinXP Display
Properties->Appearance->Font Size functionality?

However, this newsgroup "microsoft.public.dotnet.framework.windowsforms" is
a development related group, and we will not support product usage wide
problem. I think you may post this question on a product newsgroup, such as
"microsoft.public.win2000". Thanks for your understanding.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top