Alvaro Rodriguez Scelza
Alvaro Rodriguez Scelza

Reputation: 4174

C# WindowsForms looks different in runtime

I have a text box and a search button which, in design time look perfectly as I want them. But once I run the program the button apparently changes location without explanation:

Design time enter image description here

Run Time enter image description here

Note: The container form "AutoScaleMode" is currently set as "None". It was set as "Font" and it looked like this in run time: enter image description here

Which was worst. I'm using Visual Studio Enterprise 2017 in Windows 10.

Upvotes: 1

Views: 1687

Answers (1)

Alvaro Rodriguez Scelza
Alvaro Rodriguez Scelza

Reputation: 4174

Well, the workaround I found was to actually design based on run time appearance:

Design Time enter image description here

Run Time enter image description here

Which at human sight, seems pretty well (?). In this case I set 15pt font for the textbox and 32 height for the buttons.

Upvotes: 1

Related Questions