DPI for forms

M

Mark B

I have had a C# programmer (A) working on an Outlook 2007 Add-on with VSTO
(Visual Studio Tools for Office).

He was running 120 DPI on his laptop (so was I).

Then he passed the source code to another programmer to work on. That
programmer (B) was running 96 DPI on his laptop. After B compiled as shipped
the Add-on for me to test, a lot of the the forms had images truncated and
buttons, labels etc missing off to the right of the form.

Does anyone know what's the standard methodology here to ensure that the
forms look correct at any DPI?
 
P

Peter Duniho

I have had a C# programmer (A) working on an Outlook 2007 Add-on with
VSTO (Visual Studio Tools for Office).

He was running 120 DPI on his laptop (so was I).

Then he passed the source code to another programmer to work on. That
programmer (B) was running 96 DPI on his laptop. After B compiled as
shipped the Add-on for me to test, a lot of the the forms had images
truncated and buttons, labels etc missing off to the right of the form.

Does anyone know what's the standard methodology here to ensure that the
forms look correct at any DPI?

Unfortunately, there's not any "standard methodology". To some extent,
you can enable the auto-scaling properties in the Designer, and design
your UI with sufficient space that as things scale, they don't get cut
off, hidden, etc. To some extent, you can accomplish that by doing design
at lower DPI settings, or higher font-scaling if you're using higher DPI
settings.

There have been a handful of discussions over the past few years in this
newsgroup on the topic, and you might find some useful advice by searching
for and reading through what's been said. But as far as I know, there's
no 100% reliable way to solve the issue.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top