Link to home
Start Free TrialLog in
Avatar of Tim313
Tim313Flag for United States of America

asked on

Converted vs2008 to vs2010 causes controls on form to overlap

I have converted a couple of vs2008 apps to vs2010. The conversion causes the controls (labels, textboxes, etc.) to overlap each other, as if they are scrunched together on a smaller form size than the original form in vs2008. Can this be prevented? I have a few more conversions to get thru and I would prefer not to waste time shuffling controls around.
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Never seen that happening. Does the form remain same size?
Avatar of Tim313

ASKER

I didn't have vs2008 loaded on my current laptop (have vs2010), so I wasn't able to check to see if the form size was changing from vs2008 original upon conversion to vs2010, so I loaded vs2008express, opened the app and have the same problem in vs2008; controls overlapping.

The vs2008 apps I need to convert to vs2010 were developed on a different computer some time ago. Can this cause the problem?
That should not cause a problem. Are you sure you have all the files? Are you only using built in controls?
Avatar of Tim313

ASKER

I was able to retrieve my old laptop from my sister, it still has the original app files and vs2008 that the app was created on. The original form size was 1020, 764, but shows as 1030, 775 on the new laptop. The displayed form appears smaller on the new laptop, although the controls appear to be the same size (just over lapping). For example, the right side of a label is overlapped by the left side of it's corresponding textbox. The original font is set 12pt and Bold. If I change the font size/weight to 10pt/normal the overlap disappears.

All the files are there and only built in controls are used.

The original app was done on a laptop running Windows XP and vs2008. My new laptop has Windows 7 and vs2010.
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tim313

ASKER

How embarrassing... seems the default display setting is Medium - 125%, when I reset it to Smaller - 100% the font overlap disappeared.

Strange that the form size doesn't scale the same as the font size.

Thanks CodeCruiser, you saved me a whole lot of unnecessary work!