Windows Develop Bookmark and Share   
 index > Windows Forms Designer > when I open a windows form file(*.cs, c#) in designer mode, VS2005 always ask me to check out the file, but i don't modify it , I just want to view it.
 

when I open a windows form file(*.cs, c#) in designer mode, VS2005 always ask me to check out the file, but i don't modify it , I just want to view it.

when I open a windows form file(*.cs, c#) in designer mode, VS2005 always ask me to check out the file, but i don't modify it,I just want to view it .

if i chose "check out", VS2005 will modify the page layout, resize some controls, and so on.

if i chose "cancel" , i will receive some erro message, like this:
the check out was canceled by the user
.
.
.
at Microsoft.VisualStudio.Shell.Design.Serialization.DesignerDocDataService.CheckoutFiles(String[] files)
.
.
.
at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified)
at System.Windows.Forms.Layout.DefaultLayout.ApplyCachedBounds(IArrangedElement container)
at System.Windows.Forms.Layout.DefaultLayout.xLayout(IArrangedElement container, Boolean measureOnly, Size& preferredSize)
.
.
.
at System.ComponentModel.Design.DesignerHost.BeginLoad(DesignerLoader loader)

I don't want vs2005 to modify my code , what can i do ? change some options? or this is just a vs'bug?

thanks!
  • Moved byHarry ZhuMSFTFriday, August 14, 2009 9:19 AMrelating to winform designer (From:Visual C# IDE)
  •  
wangyanze  Wednesday, August 12, 2009 8:18 AM
Hi,

As i think this is problem of ur options sitting , Change the visual source Environment sitting .

Click . Tools -> Option-> Source Control -> Environment.

Change the options only one Check box. Don't show check in dialog box when checking in items.

- Checking in item Behavior

On Save and on Edit sit Check out automatically

Allowed check in items to be edited is uncheck.

Furhter I also recommend that you run the analyze utility to dectect the integrity issues in your soruceSafe database.

Good luck.
Malik M.Shahid  Saturday, August 15, 2009 8:22 AM
Hi,

As i think this is problem of ur options sitting , Change the visual source Environment sitting .

Click . Tools -> Option-> Source Control -> Environment.

Change the options only one Check box. Don't show check in dialog box when checking in items.

- Checking in item Behavior

On Save and on Edit sit Check out automatically

Allowed check in items to be edited is uncheck.

Furhter I also recommend that you run the analyze utility to dectect the integrity issues in your soruceSafe database.

Good luck.
Malik M.Shahid  Saturday, August 15, 2009 8:22 AM
thanks!

but i don't think so.
my problem is i dont want to check it out, i just open a file to view it. but if i click check out ,VS2005 will modify the page layout, resize some controls automatically.

the problem is "automatically change my file".


anyway, thanks a lot!
wangyanze  Tuesday, August 18, 2009 6:53 AM

You can use google to search for other answers

Custom Search

More Threads

• Scroll bar movement
• Manipulating data from two excel sheets into one using Visual Studio 2005
• Highlight Dates in DateTimeEditor
• scrolling message
• TextBox Context Menu
• DefaultValue question
• Designer changes DataGridView styles
• Windows XP theme in windows application in .net
• IResourceWriter does not store values
• Add unique values to collection editor