Solved

Converted vs2008 to vs2010 causes controls on form to overlap

Posted on 2013-01-11
6
305 Views
Last Modified: 2013-01-15
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.
0
Comment
Question by:Tim313
  • 3
  • 3
6 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 38769817
Never seen that happening. Does the form remain same size?
0
 

Author Comment

by:Tim313
ID: 38770083
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?
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 38770135
That should not cause a problem. Are you sure you have all the files? Are you only using built in controls?
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

Author Comment

by:Tim313
ID: 38770421
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.
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 38775208
Have you changed your system font size?
0
 

Author Closing Comment

by:Tim313
ID: 38781119
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!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question