Layout issues with Winforms present when built in Release mode, not in
Debug mode or in the Designer
I've run across a few layout issues over the years where when making GUIs
with Winforms in C# where everything looks totally fine in Debug mode, but
then I check it in and test our installed copy, and little things like
labels not being positioned quite right (like the edge encroaches onto a
nearby control) or other controls are misplaced by a few pixels. However,
in the designer (both modes) and when running in Debug mode everything
looks fine. Rather than having to build our entire solution in Release
mode to make sure my layouts look fine, is there a reason that designer
generated code is being built incorrectly between modes, and is there
anything I can do to combat this?
We build against .NET 4.0, however, these issues have occurred when
building for both .NET 2.0 and .NET 3.5 SP1.
No comments:
Post a Comment