470,855 Members | 1,200 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,855 developers. It's quick & easy.

How to specify a font for a window form

I have a window form application. When I port the application to another
computer
which has a different default font, the form gets screw up. How do I specify
the
font a window form use in the code so that when I port to another computer,
it will
use the same font no matter what the default font the new computer use?
Jul 5 '06 #1
1 1014
Hi Kueishiong,

System.Windows.Forms.Form uses Microsoft Sans Serif, 8.25pt as its default
Font. The only way this will change is when you change it explicitly in
code. Perhaps your problem is related to screen resolution?

- Dave Sexton

"Kueishiong Tu" <Ku**********@discussions.microsoft.comwrote in message
news:02**********************************@microsof t.com...
>I have a window form application. When I port the application to another
computer
which has a different default font, the form gets screw up. How do I
specify
the
font a window form use in the code so that when I port to another
computer,
it will
use the same font no matter what the default font the new computer use?

Jul 12 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Martin Streller | last post: by
3 posts views Thread by Christopher W. Douglas | last post: by
16 posts views Thread by JD | last post: by
3 posts views Thread by Joseph Gruber | last post: by
5 posts views Thread by Rob Panosh | last post: by
6 posts views Thread by Miro | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.