Shape size other than programmed

3

I created a form, with size 300; 300, in it a button with the following code: MessageBox.Show(this.Size.ToString());

The forms are getting too large for my screen, so running can be readable.

Why is the size of the form changed when running? Could you work around this?

    
asked by anonymous 24.05.2017 / 20:38

1 answer

2

Check the AutoScaleMode property of the Form.

link

    
26.05.2017 / 01:01