c# windows forms form is not scaling

661 Views Asked by At

I have a window that is not scaling.

I have applied the PerMonitorV2 flag, and also I have in the class

    this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;

When I try to see the window in DPI 100%, everything is fine

When I try to see the window in DPI 150%, I see the overall window size is bigger, but the size of user control didn't enlarge according to the window.

If I delete AutoScaleDimenstion and AutoScaleMode everything works fine in both cases which is so much weird.

Please assist, thanks.

0

There are 0 best solutions below