henriquesirot
henriquesirot

Reputation: 115

C# WinForms messed up control positions?

I have this running software that is currently being used by about 400 people. To most of them (and to me) it all looks fine and dandy, but a couple of users have reported the controls looking weird, all messed-up, position-like...

Do you guys know any errors that may be preventing this from working correctly or any solutions?

EDIT: http://img52.imageshack.us/img52/6707/capturarvw.png

Upvotes: 2

Views: 2015

Answers (2)

Roman Starkov
Roman Starkov

Reputation: 61382

Change your form’s AutoScaleMode from Font to None, and the form won’t respond to DPI changes.

Of course it would be best if you could instead scale properly. Can’t wait till everyone’s using frameworks that make it hard not to do this. Like WPF.

Upvotes: 2

walther
walther

Reputation: 13600

If you ever encounter such problem again, the basic rule is to get as much information from your customers as possible. You need to collect their version of Windows, .NET, resolution etc. If you could get this info, it's MUCH easier (and faster) to narrow down the problem and eliminate it.

As few people before me suggested, this may be caused by several issues. My personal guess would be badly implemented layout... Maybe try to post some code, so we can see it, and definitely get more info from your unhappy customers.

Upvotes: 0

Related Questions