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

后端 未结 15 1662
逝去的感伤
逝去的感伤 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:48

    I had the same problem with VB. Thanks for the hints. I found the same issues in the .vbproj with my UserControl.

    I had this in the .vbproj file:

    
    

    And changed it to this:

    
       UserControl
    
    

    When I reloaded it I was still having problems and realised that I had written another class in above the form class, this was causing the error. The form class must be first. All I had to do was move my class down and make the form class the top one.

    I hope this helps others - good luck!

    p.s - I am using vs Community 2015

提交回复
热议问题