I have a VS2010 Winforms project with several forms and user controls, all integrated with TFS. Every time I open one of the forms in the designer, it checks itself out and acts like changes have been made, even though none have. This happens for everyone working with this project, and only happens with this one particular form. Anyone have any idea what could be causing this?
I think the WinForms designer regenerates the form.designer.cs file whenever you open it, thus causing a checkout. Of course the file doesn't end up with any different code, but it got rewritten again.
Also, if you have code in your constructor, this DOES get run by the designer. Maybe that code is is setting a property on a control (but not to a new value) which causes the designer to want to regenerate the file.
Could it be changing the encoding? Locate the file in the Pending Changes window and see if the Change is listed as "type,edit".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With