Winforms and screen resolution
Posted on 2006-04-10
I am working on a WinForm application in C#. I have desktop in office and laptop at home. When I design a form using my desktop (1280x1024) and compile and run, it works fine. But when I take the source code and load the solution on my laptop with different screen resolution and then try to add/move controls on the form, the form gets screwed up. When I run, the controls appear overlapping. I use a lot of user controls. When I checked the spacing between controls, it also gets reduced by the form designer. How do I handle this. I want to work on the code from both machines. Is there any way make sure that control spacings set on one machine remain same when I load the solution on another machine?
I wonder how multiple users with different machines (with different screen resolutions) working on same project, like a typical commercial project, handle this.
Any help or pointers will be appreciated.