Created On:  31 August 2012

Problem:

Customer copied their Visual COBOL Windows Forms solution to another development machine with a different screen resolution.  The Form size and controls are not the same (lined up etc.).

Is it the Form's AutoScaleMode property that controls this?

Original developer is using a resolution of 1980 x 1080 and the second machine is 1680 x 1050. Will this also be an issue when deployed on end user machines?

Resolution:

Yes, it is the AutoScaleMode property of the Form that controls how the Forms and their Controls will be scaled if the application is run on a system that has a different screen resulution or uses a different default font.

You can read about this at http://msdn.microsoft.com/en-us/library/ms229605.aspx:

A Forms AutoScaleMode property is set to inherit by default, which means use the mode specified in the Forms parent.  If there is no parent then this defaults to no scaling.

You should try setting this property to Font or Dpi in order to turn on the Auto scaling feature.