autoscale windows forms c# code example Example: c# form set auto scale Form.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;