Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3756356
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:50:22+00:00 2026-05-19T09:50:22+00:00

My application loads information from a file which then creates x amount of controls

  • 0

My application loads information from a file which then creates x amount of controls on y amounts of tabpages in a form.

My problem is that when the user has a different DPI to the standard Windows 96, the controls added overlap each other. The initial controls on the form are fine.

How can I set the controls to be modified to the 96 DPI instead of whatever the users machine is running at?

If this is very difficult, is there a way to see what the users DPI is? I can then throw a warning saying that you should use 96DPI etc etc.

Thank you for any help or advise you can give me!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T09:50:23+00:00Added an answer on May 19, 2026 at 9:50 am

    Just to answer my own question I wrote this and put it in my Form load event:

            Graphics formGraphics = this.CreateGraphics();
            if ((formGraphics.DpiX != 96) || (formGraphics.DpiY != 96))
            {
                MessageBox.Show("You are attempting to run this application in an unknown DPI. This application has been designed for Normal size (96 DPI), you may experience some display issues if you continue to use your current settings. Please change your Display settings back to normal size through your control panel to ensure you don't experience any problems. Thank you.",
                "Warning",
                MessageBoxButtons.OK,
                MessageBoxIcon.Exclamation,
                MessageBoxDefaultButton.Button1);
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a C++ application that loads lots of data from a database, then
In my application I load information from several (6-10) websites using NSXMLParser and then
My application loads an XML data set from a file on disk using serialization,
I'm creating a splash screen that will display while my Android application loads. I'd
I have an application which loads up c# source files dynamically and runs them
i have an application that loads the page content. I use the WebClient class.
When we open NUnit application it loads the assemblies that are loaded in it
I have a simple application that loads an unmanaged dll and passes a few
I have a portal application that loads external content (widgets) via an iframe. Users
I have a C# application which loads at startup, and logs data to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.