[quoted text, click to view] "Phil Blake" <spiret_jp@yahoo.com> wrote in message
news:Xns9756AFEFBF83spiretjpyahoocom@207.115.17.102...
>
> VS2005 has a bad habit of shrinking my form every time I compile. I doubt
> if there's a solution to this problem (besides Microsoft's fixing the
> bug),
> but I'm curious if anyone else has experienced the same thing.
>
> The Story: I converted a C# project from VS2003 to 2005. Ever since
> then,
> my form shrinks exactly 20 vertical pixels whenever I compile with the
> designer window open. This is repeatable; It happens every single time.
>
> I tried turning autoscale off and making the form's font the default, to
> no
> avail. I even tried making the form's source file read-only, but the
> compiler ignores this attribute and modifies the file anyway.
>
> Please don't suggest that I start the project from scratch under VS2005.
> That will probably get rid of the problem, but it doesn't explain this odd
> behavior. Shrinking the form by 20 pixels every time sounds so deliberate
> that it just has to be a feature gone wrong, and ought to be fixed.
You don't mention the project or template types. Is this a Windows
application?
If it is, the problem you cite is not reproducible here. I've test-converted
three different VS 2003 C# Windows apps to VS 2005 and rebuilding with the
designer window open has no effect on the form dimensions. I also did a
quick search for other reports of similar problems and found none, so I'm
thinking it's something unique to your hardware/OS environment.
I've had a "special" issue with VS 2005 myself, where installations on a
couple of machines had issues with rebuilding C++ apps. Attempts to rebuild
produced dialogs claiming certain VS 2005 dll's were missing. Building the
same apps went fine. I posted in the appropriate groups, reported it on the
VS forum:
http://lab.msdn.microsoft.com/productfeedback/default.aspx
Nobody had seen it and nobody could reproduce it. I subsequently installed
VS 2005 on a newly built machine and the bug did not appear. I'm mystified.
You might consider reporting your bug through the link above.