473,698 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3265
"Alex Glass" <fo******@hotma il.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******** ********@tk2msf tngp13.phx.gbl. ..
"Alex Glass" <fo******@hotma il.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******** ******@TK2MSFTN GP09.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******** ********@tk2msf tngp13.phx.gbl. ..
| > "Alex Glass" <fo******@hotma il.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******** ******@TK2MSFTN GP14.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******** ******@TK2MSFTN GP09.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******** ********@tk2msf tngp13.phx.gbl. ..
| > "Alex Glass" <fo******@hotma il.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.ScaleCo re 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******** ******@TK2MSFTN GP10.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******** ******@TK2MSFTN GP14.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******** ******@TK2MSFTN GP09.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******** ********@tk2msf tngp13.phx.gbl. ..
| > | > "Alex Glass" <fo******@hotma il.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
8405
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: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?
0
1142
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. The problem occured when showing a dialog box a second time. The first time it was hidden when closed, and when ShowDialog was called a second time an InvalidOperationException was thrown, claiming that a dialog could not be shown if it was...
1
1649
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, they do not fit on the page properly, and are partically covered by other controls, etc. Has anyone run into this before? Please help. Thanks in advance,
1
1884
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 DPI. Clientsize, and size properties seem way bigger than my resolution is even set to. I know how to detect the 120 font DPI, but I'm really confused as to the relationship between Control size properties and the inreast font DPI. Does the...
2
2933
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 servers configured with large fonts. For a reason I cant explain, not only the font changes when settings the window on large font but all the widgets seem to be resized. This is kind of problematic because I have to redraw (resize) all the widgets...
57
3642
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. www.bbc.co.uk/news are unaffected by this I think. They are definitely not affected by changing the font size within the browser. Because I want to add tables, which will word-wrap incorrectly if the font size is changed, how can I disable allowing the...
0
1485
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 the following. In the constructor I call Util.LoadPosition(control) which reads in the position and size
8
3234
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
2666
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 blah blah. With Ajax (actually, the uncovering of the XmlHTTPRequest object) I absolutely see the benefit of moving more of the UI work to the client, rather than doing page refreshes. I know there are a bunch of libraries out there...
0
8674
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9157
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4369
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3046
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2329
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.