473,395 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 3249
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

66
by: Alan Illeman | last post by:
Is there a listing of serif fonts and san-serif fonts somewhere? Regards, Alan -- A: Because it messes up the order in which people normally read text. Q: Why is it such a bad thing? A:...
0
by: theinvisibleGhost | last post by:
Yesterday was getting very fed up trying to run a program which works fine on my desktop machine (XP Pro) but as soon as I put it on a laptop, I was getting an Exception, which killed the program....
1
by: news.Microsoft.com | last post by:
I've created an asp.net app and it appears fine when I view it with normal font sizes but when some laptop users view it (They use large fonts setting) all labels appear gigantic on the aspx page,...
1
by: Jason | last post by:
Does anybody here have any sites or information about programming a VB.NET UI with 120DPI fonts. There are a lot of form size properties that seem to go way out of whack when you change the font...
2
by: Luc | last post by:
I saw a few posts on this newsgroup about it but nothing to help me resolve this problem: We designed a window in .NET on a platform using small fonts (120 ppp). But this window will run on...
57
by: Chris Tomlinson | last post by:
Hi all, Hope someone is able to help. I notice when I design a basic HTML page, it is affected if a WinXP user has Large Fonts set in their Control Panel. However some pages, e.g....
0
by: jkristia | last post by:
I'm completely lost right now, and can't figure out how to solve this problem. I want my app and dialogs to show up in the same position and same size as when they were closed. For that I do...
8
by: Joe | last post by:
Hi trying to write some code to determine if user has large/small fonts set on PC thought this would work but it didn't Any suggestions??? Thanks Graphics g = Graphics.FromHwnd(this.Handle);
10
by: Tom Cole | last post by:
While I've done javascript work for as long as I can remember (since Netscape first released it), I've only ever used it for trivial things, change a color here, validate a text element there, blah...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.