468,458 Members | 1,828 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Large fonts setting (120DPI)

I have created a winforms application and I designed it with the normal
display settings, (96DPI) however, when I set the font settings to 120 DPI,
my application text labels look all messed up. Does anyone know a
work-around for this problem?

Thanks for any advice,
Alex
Nov 21 '05 #1
5 2956
"Alex Glass" <fo******@hotmail.com> schrieb:
I have created a winforms application and I designed it with the normal
display settings, (96DPI) however, when I set the font settings to 120 DPI,
my application text labels look all messed up. Does anyone know a
work-around for this problem?


Take a look at the documentation of the form's 'AutoScale' property.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2
Hi Herfried

If my experience is anything to go by, I think the OP will be sadly
disappointed by the AutoScale property. It just does not do what it says on
the tin.

For example, labels get truncated and controls become scrunched up. I have
not found a way to make this work, and I have spent a lot of time trying.

Charles
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
"Alex Glass" <fo******@hotmail.com> schrieb:
I have created a winforms application and I designed it with the normal
display settings, (96DPI) however, when I set the font settings to 120
DPI, my application text labels look all messed up. Does anyone know a
work-around for this problem?


Take a look at the documentation of the form's 'AutoScale' property.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
Charles,
Just out of curiosity: are you designing using Large Fonts or Small Fonts?

I have a couple of Windows Forms apps that I've designed on a monitor
running 1600 by 1200 with 120 DPI setting. That when run on lower
resolutions with 96 DPI look fine.

Are you dynamically adding controls, or is every thing done at design time.

Have you tried .NET 2.0 yet? It has improved support for AutoScale.

http://msdn2.microsoft.com/library/e...us,vs.80).aspx
http://msdn2.microsoft.com/library/h...us,vs.80).aspx
http://msdn2.microsoft.com/library/f...us,vs.80).aspx

I have not done a lot with the above properties yet.
I'm curious more to know about any "gotchas" I should be aware of in my
stuff.

Hope this helps
Jay
"Charles Law" <bl***@nowhere.com> wrote in message
news:eY**************@TK2MSFTNGP09.phx.gbl...
| Hi Herfried
|
| If my experience is anything to go by, I think the OP will be sadly
| disappointed by the AutoScale property. It just does not do what it says
on
| the tin.
|
| For example, labels get truncated and controls become scrunched up. I have
| not found a way to make this work, and I have spent a lot of time trying.
|
| Charles
|
|
| "Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
| news:%2****************@tk2msftngp13.phx.gbl...
| > "Alex Glass" <fo******@hotmail.com> schrieb:
| >>I have created a winforms application and I designed it with the normal
| >>display settings, (96DPI) however, when I set the font settings to 120
| >>DPI, my application text labels look all messed up. Does anyone know a
| >>work-around for this problem?
| >
| > Take a look at the documentation of the form's 'AutoScale' property.
| >
| > --
| > M S Herfried K. Wagner
| > M V P <URL:http://dotnet.mvps.org/>
| > V B <URL:http://classicvb.org/petition/>
|
|
Nov 21 '05 #4
Hi Jay

I am designing on 96 dpi, and when I run on my laptop at 120 dpi I get the
problem.

I am dynamically adding controls, but I got the same problem when using
controls added at design time. What I found was that if I just ran the app
on the laptop things went skewie, but if I opened the form in the designer
on the laptop and then ran it was ok. This suggested to me that the designer
detects the change in resolution and changes the positions and sizes of
controls at design time. This, of course, didn't help me at runtime.

As it happens, my remit is not to design for large fonts, so I gave up
trying to make it work. It just remains a problem for me on my laptop.

I haven't tried .NET 2.0 yet. I don't really have the time at present, and I
wouldn't be allowed to deploy anything built with it by my clients anyway,
so I will start the minute it is released properly (in November, I
understand).

Charles
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:ux**************@TK2MSFTNGP14.phx.gbl...
Charles,
Just out of curiosity: are you designing using Large Fonts or Small Fonts?

I have a couple of Windows Forms apps that I've designed on a monitor
running 1600 by 1200 with 120 DPI setting. That when run on lower
resolutions with 96 DPI look fine.

Are you dynamically adding controls, or is every thing done at design
time.

Have you tried .NET 2.0 yet? It has improved support for AutoScale.

http://msdn2.microsoft.com/library/e...us,vs.80).aspx
http://msdn2.microsoft.com/library/h...us,vs.80).aspx
http://msdn2.microsoft.com/library/f...us,vs.80).aspx

I have not done a lot with the above properties yet.
I'm curious more to know about any "gotchas" I should be aware of in my
stuff.

Hope this helps
Jay
"Charles Law" <bl***@nowhere.com> wrote in message
news:eY**************@TK2MSFTNGP09.phx.gbl...
| Hi Herfried
|
| If my experience is anything to go by, I think the OP will be sadly
| disappointed by the AutoScale property. It just does not do what it says
on
| the tin.
|
| For example, labels get truncated and controls become scrunched up. I
have
| not found a way to make this work, and I have spent a lot of time
trying.
|
| Charles
|
|
| "Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
| news:%2****************@tk2msftngp13.phx.gbl...
| > "Alex Glass" <fo******@hotmail.com> schrieb:
| >>I have created a winforms application and I designed it with the
normal
| >>display settings, (96DPI) however, when I set the font settings to 120
| >>DPI, my application text labels look all messed up. Does anyone know
a
| >>work-around for this problem?
| >
| > Take a look at the documentation of the form's 'AutoScale' property.
| >
| > --
| > M S Herfried K. Wagner
| > M V P <URL:http://dotnet.mvps.org/>
| > V B <URL:http://classicvb.org/petition/>
|
|

Nov 21 '05 #5
Charles,
| I am designing on 96 dpi, and when I run on my laptop at 120 dpi I get the
| problem.
Ah! There's the Rub! (maybe ;-)). I'm designing at 120 then running at 96
dpi. I wonder why going the other direction is a problem. Or maybe its, I
wonder why I'm not having a problem... Or possible, I wonder why I'm not
seeing that I have a problem ;-)

I know on one of my controls I needed to override Control.ScaleCore as I
have custom Size & Point properties that needed to be scaled from the design
dimensions to the runtime dimensions...

Hope this helps
Jay

"Charles Law" <bl***@nowhere.com> wrote in message
news:uK**************@TK2MSFTNGP10.phx.gbl...
| Hi Jay
|
| I am designing on 96 dpi, and when I run on my laptop at 120 dpi I get the
| problem.
|
| I am dynamically adding controls, but I got the same problem when using
| controls added at design time. What I found was that if I just ran the app
| on the laptop things went skewie, but if I opened the form in the designer
| on the laptop and then ran it was ok. This suggested to me that the
designer
| detects the change in resolution and changes the positions and sizes of
| controls at design time. This, of course, didn't help me at runtime.
|
| As it happens, my remit is not to design for large fonts, so I gave up
| trying to make it work. It just remains a problem for me on my laptop.
|
| I haven't tried .NET 2.0 yet. I don't really have the time at present, and
I
| wouldn't be allowed to deploy anything built with it by my clients anyway,
| so I will start the minute it is released properly (in November, I
| understand).
|
| Charles
|
|
| "Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
| news:ux**************@TK2MSFTNGP14.phx.gbl...
| > Charles,
| > Just out of curiosity: are you designing using Large Fonts or Small
Fonts?
| >
| > I have a couple of Windows Forms apps that I've designed on a monitor
| > running 1600 by 1200 with 120 DPI setting. That when run on lower
| > resolutions with 96 DPI look fine.
| >
| > Are you dynamically adding controls, or is every thing done at design
| > time.
| >
| > Have you tried .NET 2.0 yet? It has improved support for AutoScale.
| >
| > http://msdn2.microsoft.com/library/e...us,vs.80).aspx
| > http://msdn2.microsoft.com/library/h...us,vs.80).aspx
| > http://msdn2.microsoft.com/library/f...us,vs.80).aspx
| >
| > I have not done a lot with the above properties yet.
| >
| >
| > I'm curious more to know about any "gotchas" I should be aware of in my
| > stuff.
| >
| > Hope this helps
| > Jay
| >
| >
| > "Charles Law" <bl***@nowhere.com> wrote in message
| > news:eY**************@TK2MSFTNGP09.phx.gbl...
| > | Hi Herfried
| > |
| > | If my experience is anything to go by, I think the OP will be sadly
| > | disappointed by the AutoScale property. It just does not do what it
says
| > on
| > | the tin.
| > |
| > | For example, labels get truncated and controls become scrunched up. I
| > have
| > | not found a way to make this work, and I have spent a lot of time
| > trying.
| > |
| > | Charles
| > |
| > |
| > | "Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
| > | news:%2****************@tk2msftngp13.phx.gbl...
| > | > "Alex Glass" <fo******@hotmail.com> schrieb:
| > | >>I have created a winforms application and I designed it with the
| > normal
| > | >>display settings, (96DPI) however, when I set the font settings to
120
| > | >>DPI, my application text labels look all messed up. Does anyone
know
| > a
| > | >>work-around for this problem?
| > | >
| > | > Take a look at the documentation of the form's 'AutoScale' property.
| > | >
| > | > --
| > | > M S Herfried K. Wagner
| > | > M V P <URL:http://dotnet.mvps.org/>
| > | > V B <URL:http://classicvb.org/petition/>
| > |
| > |
| >
| >
|
|
Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

66 posts views Thread by Alan Illeman | last post: by
reply views Thread by theinvisibleGhost | last post: by
1 post views Thread by news.Microsoft.com | last post: by
1 post views Thread by Jason | last post: by
57 posts views Thread by Chris Tomlinson | last post: by
reply views Thread by kmladenovski | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.