C# Forms are larger than expected on Dell Laptop

  • Thread starter Thread starter commanderjason
  • Start date Start date
C

commanderjason

I am working on a project where I am using bitmap graphics over my form
background and all controls.

In general the app looks fine. However there are a few users that have
a problem where the graphics and the controls do not line up at all.

I have a dell dimension with a widescreen that is experiencing the
problem that i am able to test on.

I created a simple test app, a windows form that shows the dimensions
of the form on a label.

I have set this form to be sized as 300x300. Min and Max size are set
to 300x300 and the border is fixedsingle so it cannot be resized.

However when i run the test app on the laptop it always opens at
397x360

So it seems that the dimensions are increased roughly by 25% no matter
what size the initial app is set to. This also applies to all controls
within the app.

Any help is appreciated
 
I am working on a project where I am using bitmap graphics over my form
background and all controls.

In general the app looks fine. However there are a few users that have
a problem where the graphics and the controls do not line up at all.

I have a dell dimension with a widescreen that is experiencing the
problem that i am able to test on.

I created a simple test app, a windows form that shows the dimensions
of the form on a label.

I have set this form to be sized as 300x300. Min and Max size are set
to 300x300 and the border is fixedsingle so it cannot be resized.

However when i run the test app on the laptop it always opens at
397x360

So it seems that the dimensions are increased roughly by 25% no matter
what size the initial app is set to. This also applies to all controls
within the app.

Any help is appreciated

Checkout your Font DPI setting in Display Properties -> Settings ->
Advanced, on the "General Tab.

The default settings from the notebook vendors is usually different than
"Normal Size", or 96DPI.

I had a program manager complaing about it one time in the past, thinking it
was all my fault.
 
Back
Top