VS2005 - Automatic request for the design of a form on opening with the "View Designer"

I am trying to integrate our Source Control (SourceAnywhere) with VS and am getting a lot of repulsion due to this issue.

Almost every time we open some of our Windows Forms using the "View Designer", it will edit the file (* appears next to the file name). Nothing has changed yet, I tried to compare before and after files and they are exactly the same. If we have a linked solution, it will check the file, but even if it is not linked, it is still "editing" the file. When you try to check a file, it doesn't get a new version or whatever.

I did some searching and couldn't find a way to change this behavior.

This is a huge pain for me, as if someone already has a form and someone is trying to open it, they are simply told that it cannot be checked and the form will not be opened. Or someone who does not intend to edit the form will now receive the form but have not changed anything.

Thoughts?

+1


source to share


1 answer


This usually happens when the form has a "Dock". If the IDE thinks it needs to resize the form, then those controls will be resized as well, and all this information should be rewritten to the original file. In case you are editing a form named "Form1" this source file is not Form1.cs, but rather Form1.Designer.cs - try comparing this file with the version from the source control.



Alternatively, switch to a source control system that does not use the default locking (such as Subversion) or disables this feature in SourceAnywhere. This will require users to manage merge conflicts, but allows multiple users to work on the same file at the same time.

+1


source







All Articles