Prevent form from resizing when system font DPI is changed?

J

Jon Pope

I'm maintaining an internal tool within my organization. Some of my users
have resized their system font size by changing the DPI setting from 96DPI
to 120DPI (by right-clicking the desktop and selecting
Properties|Settings|Advanced|General).

My problem is this: my splash screen form gets resized after the user
performs this action, and as a consequence it looks "funny": the image
remains the same size but the form is wider, so parts of the form are
exposed instead of being covered by the splash image. How can I tell .NET
that I don't want the form's size to ever be changed regardless of the
system font DPI?


Cheers, Jon
 
J

Jay B. Harlow [MVP - Outlook]

Jon,
Have you tried changing the Form.AutoScale property when you are designing
your form?

Hope this helps
Jay

| I'm maintaining an internal tool within my organization. Some of my users
| have resized their system font size by changing the DPI setting from 96DPI
| to 120DPI (by right-clicking the desktop and selecting
| Properties|Settings|Advanced|General).
|
| My problem is this: my splash screen form gets resized after the user
| performs this action, and as a consequence it looks "funny": the image
| remains the same size but the form is wider, so parts of the form are
| exposed instead of being covered by the splash image. How can I tell .NET
| that I don't want the form's size to ever be changed regardless of the
| system font DPI?
|
|
| Cheers, Jon
|
|
 

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