Winforms and screen resolution

Hi,
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.
chhakuliAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

chhakuliAuthor Commented:
And yes, I use Visual Studio .NET 2003.
AGBrownCommented:
What are the anchor properties set to on the controls?
chhakuliAuthor Commented:
top,left
Rowby Goren Makes an Impact on Screen and Online

Learn about longtime user Rowby Goren and his great contributions to the site. We explore his method for posing questions that are likely to yield a solution, and take a look at how his career transformed from a Hollywood writer to a website entrepreneur.

AGBrownCommented:
The anchor properties are set fine afaik, so I can't help I'm afraid.

I produced a winforms piece of software for a client when I started out with .NET 1.1. It worked fine on 3 different machines that i tested it on, and as soon as I gave it to the customer he put it on his widescreen Dell, and the controls on the form were completely unable to find the right-hand side of the screen. It was a nightmare, and I couldn't find a fix for it.

I have no idea what causes this.

Andy
dunglaCommented:
Hi chhakuli,

AFAIK control spacings set on one machine remain is same when you load the solution on another machine.

How many controls do you have in form? How it look like, the position of each control and its anchor will take effect when you try to resize the form.

If you don't mind, capture your form and send to me via dungleanh@gmail.com.
RoninTheCommented:
what's the OS you're using - winxp? Is the default font size on your laptop more/less than your desktop. if yes, try changing the default theme settings like fontsize to same as your desktop(something like tahoma 8pt). it might help.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
chhakuliAuthor Commented:
Thanks RoninThe. My desktop font was set to Large. I changed it to small (as is on my laptop) and now it works fine. no overlapping issue.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.