Microsoft KB Archive/814360

= &quot;Check Out For Edit&quot; dialog box is displayed when items collection editor is cancelled =

Article ID: 814360

Article Last Modified on 5/11/2007

-

APPLIES TO


 * Microsoft .NET Framework 1.1
 * Microsoft .NET Framework 1.0
 * Microsoft Visual Studio .NET 2003 Professional Edition
 * Microsoft Visual Studio .NET 2003 Enterprise Architect
 * Microsoft Visual Studio .NET 2003 Enterprise Developer
 * Microsoft Visual Studio .NET 2003 Academic Edition
 * Microsoft Visual Studio .NET 2002 Professional Edition
 * Microsoft Visual Studio .NET 2002 Enterprise Architect
 * Microsoft Visual Studio .NET 2002 Enterprise Developer
 * Microsoft Visual Studio .NET 2002 Academic Edition
 * Microsoft Visual SourceSafe 6.0 Standard Edition

-



SYMPTOMS
After you add your Windows-based application project to Microsoft Visual SourceSafe, you receive a Check Out For Edit dialog box if you do the the following things:
 * 1) You do not check out the project.
 * 2) You open the Items collection editor to modify the items.
 * 3) You click Cancel to discard the changes.

The file that you are working on may also become corrupted.



CAUSE
When you use the Items collection editor to modify any items, and you click Cancel, Visual Studio .NET incorrectly tries to make changes to the underlying code. However, the code is in a file that is checked in under Source Control. You must check out the file before you can modify it. Therefore, you receive the Check Out For Edit dialog Box.



WORKAROUND
To work around this problem, click Cancel on the Check Out For Edit dialog Box.



STATUS
This behavior is by design.



Steps to Reproduce the Behavior

 * 1) Start Visual Studio .NET.
 * 2) Create a new Windows-based application by using Visual Basic .NET or Visual C# .NET.

By default, Form1 is created.
 * 1) In the toolbox, double-click ListView.

ListView1 is added to Form1.
 * 1) In the Properties window for ListView1, click the ellipsis button (...) for the Items property to view the Items collection editor.
 * 2) In the Items collection editor, click Add, and then click OK.
 * 3) On the File Menu, point to Source Control, and then click Add Solution to Source Control.

Note Type the username, password, database, and project when you are prompted to.
 * 1) In the Properties window for ListView1, click the ellipsis button for the Items property to view the Items collection editor.
 * 2) In the Items collection editor, click Remove, and then click Cancel.

