Windows Forms C# Tool location is not same

I'm developing an windows forms application using .NET C# and so far all code related are just fine. But, I got some UI trouble. I have this gauge that I'm using in the UI for displaying a connection speed but theres one problem. When I develop the application on an workstation with Visual Studio 2010 and makes the design and then keeps developing the application on another workstation with Visual Studio 2012 some tools and widgets like the gauge seems to not have the same location in the UI anymore.

It's like if the resolution had been changed, but It hasn't. It's 1920 x 1080 on both workstations. The form's window size is fixed and can't be changed or maximized. Most of the controls fit pretty good on both workstations but this gauge is not fiting good.

The one reason why it matters is because the background of the page where the gauge is placed are using the gauge for an overlay of the background so it's really important that it is placed on the exact same spot on both workstations. Any suggestions why this issue maybe comes up? I don't think that the problem is the gauge more like some settings to the widgets or the main form.

Answers


Check out the AutoScaleMode property of your Form. The default value of this property (AutoScaleMode.Font) can cause the form to adjust its size and the positioning of child controls depending on the user's system font sizes. If you change this property to AutoScaleMode.None then the form will not attempt to resize itself. If you perform any GDI+ drawing in your application, though, you need to make sure that all the drawing calls are DPI independent. Also note that changing this setting may make your application hard to see for users with poor eyesight (or tiny monitors).


Need Your Help

How to provision an EC2 Server programmatically and configure default settings

python amazon-web-services amazon-ec2 cloud server

I would like to provision an AWS EC2 server using python and set default user and password among other things. The idea is that the developer selects from our site menu the items they would like to...

Javascript is not following dropdown list choice

javascript php

This case is about dynamic div's following the dropdown choice.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.