Unable to get the designer view window back using windows forms with Visual Studio 2010

后端 未结 15 1708
逝去的感伤
逝去的感伤 2020-12-20 11:08

I am in process of writing a C# Windows Forms application using Visual Studio Express 2010 ENU SP1. Further VS specifics are at the bottom of this post. I recently made so

15条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-20 11:45

    I had the same problem but mine was caused on VS2012 by dragging and dropping some of the forms into different folders.

    David's solution above was helpful towards fixing it, but didn't go all the way.

    If you have the form in a sub-folder the Compile Include line should read like this:

    
        MyForm.cs
    
    

    Please note that the sub-folder name is needed in the first line but not in the second line.

    I also had to change the EmbeddedResource line further down the file to associate the resx file:

       
            MyForm.cs
        
    

    Again, note that the first line mentions the sub-folder whereas the second line doesn't.

提交回复
热议问题