Skip to main content

When I copy my solution to another development machine with a different screen resolution, the form size and controls are not the same (lined up etc.).  Is this the form's AutoScaleMode property that controls this?  I'm 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?


#VisualCOBOLautoscalemodescreenresolution

When I copy my solution to another development machine with a different screen resolution, the form size and controls are not the same (lined up etc.).  Is this the form's AutoScaleMode property that controls this?  I'm 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?


#VisualCOBOLautoscalemodescreenresolution

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 here:

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.

 

Thanks


When I copy my solution to another development machine with a different screen resolution, the form size and controls are not the same (lined up etc.).  Is this the form's AutoScaleMode property that controls this?  I'm 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?


#VisualCOBOLautoscalemodescreenresolution

Thanks Chris, Dpi property works as you described.