Re: Large fonts setting (120DPI)

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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]" <Jay_Harlow_MVP@xxxxxxx> wrote in message
news:uxpTvFyeFHA.2124@xxxxxxxxxxxxxxxxxxxxxxx
> 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/ey6t55zx(en-us,vs.80).aspx
> http://msdn2.microsoft.com/library/h3kyk1we(en-us,vs.80).aspx
> http://msdn2.microsoft.com/library/fw0ta176(en-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" <blank@xxxxxxxxxxx> wrote in message
> news:eYQbTKveFHA.3160@xxxxxxxxxxxxxxxxxxxxxxx
> | 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]" <hirf-spam-me-here@xxxxxx> wrote in message
> | news:%23YwWemjeFHA.1600@xxxxxxxxxxxxxxxxxxxxxxx
> | > "Alex Glass" <force010@xxxxxxxxxxx> 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/>
> |
> |
>
>


.


Quantcast