المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : One pixel alignment differences between designer and run time form



C# Programming
04-10-2009, 12:00 AM
I've got a real head scratcher here. One of my dialogs the text displayed at runtime begins one pixel farther to the left than at design time, and some spaces are 1 pixel wider at run time. I initially noticed this when the effect caused text to wrap differently.

When I created a new test form in the same project and copied the interface components into it, the problem persisted. When I created a new solution and copied the offending forms source into the new solution the problem went away.


This is happening in VS2k8. The solution it's occurring in was originally created in 2k3 and then converted to the new version.

Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian ******** roots.
-- Robert Royall