"Check Out For Edit" dialog box is displayed when items collection editor is cancelled (814360)



The information in this article 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 Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2003), Academic Edition
  • Microsoft Visual Studio .NET (2002), Professional Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2002), Academic Edition
  • Microsoft Visual SourceSafe for Windows 6.0

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.

MORE INFORMATION

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.
  3. In the toolbox, double-click ListView.

    ListView1 is added to Form1.
  4. In the Properties window for ListView1, click the ellipsis button (...) for the Items property to view the Items collection editor.
  5. In the Items collection editor, click Add, and then click OK.
  6. 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.
  7. In the Properties window for ListView1, click the ellipsis button for the Items property to view the Items collection editor.
  8. In the Items collection editor, click Remove, and then click Cancel.

REFERENCES

For more information, visit the following MSDN Web Site:

Modification Type:MajorLast Reviewed:1/27/2006
Keywords:kbvs2005swept kbvs2005doesnotapply kbSrcControl kbResource kbWindowsForms kbListView kbWebForms kbCtrl kbControl kbprb KB814360 kbAudDeveloper