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 6118927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:29:36+00:00 2026-05-23T15:29:36+00:00

I have a project converted from .NET 1.1 to 3.5 being developed in 2008.

  • 0

I have a project converted from .NET 1.1 to 3.5 being developed in 2008.

If I open the project on Windows 7, it converts the size of everything to 120dpi sizes. If I then open it with 96 dpi it changes back. Is there any way for me to develop so it looks good in both, and not have Visual Studio change the sizes if opened on a system with different DPI?

This question is perhaps better phrased/duplicated here:
visual studio designer dpi setting

Or here:
Visual Studio and DPI issue

To be clear what I am trying to do is prevent the control from being resized in the designer when being used by multiple developers with different DPI settings. In all cases where I’ve noticed this issue I’ve been working with a .NET 1 or .NET 2 project upgraded to use Visual Studio 2008 originally, now Visual Studio 2010.

Update (in case anyone wants to compete with @Ben for bonus points): I have a form which resizes correctly, but the size of the window gets changed programmatically. Because the designer isn’t aware of the dimensions, the window resizes incorrectly if a developer using a different DPI touches the form. Is there a way of getting around that problem other than going back to not scaling the UI at runtime?

For instance: I have two sizes for my window declared, which work correctly if developers use 120 dpi at design time:

private static Size smallSize = new Size(960, 500);
private static Size largeSize = new Size(960, 615);

I’m just trying to wrap my head around what I would need to do to not have a horrible design regression if someone edits the form in a 96dpi designer.

  • 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-23T15:29:37+00:00Added an answer on May 23, 2026 at 3:29 pm

    AutoScaleMode = AutoScaleMode.None;

    See also: ContainerControl.AutoScaleMode property

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Recently, my team converted ASP.NET project from .NET 1.1 to .NET 2.0. Everything is
Hello, I have converted a VB 6 project to VB.NET 2008 One of the
I've just converted a project from .net 1.1 to 3.5, and I'm being given
I have this function in vb.net that I converted from C# for a project
I have a VB project that is converted from VB6 to VB.NET. In this,
I have in Visual Studio 2008 a .NET 3.5 C# project that uses a
I have a .NET assembly that was converted from a jar file. This library
I just converted a WPF project from .NET 3.5 to .NET 4.0. I'm now
I am converting from vb5 and have a dll (now converted to VB.NET) which
I recently have convert my project from VB6 to VB.NET2008, after the convert here

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.