Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Design view not opening in Visual studio 2015

I am building a win-forms app in c#. A few days ago I opened my project and the design view was closed. I've tried right clicking the form and pressing "open with...", but no option appears to open it in design view. All other questions related to this are for ASP pages and the answers don't work (eg. Blend in Visual Studio 2015 - No Design View). The following is a screenshot of my IDE: Screenshot of Visual studio 2015

like image 724
Emile Akbarzadeh Avatar asked Dec 14 '22 09:12

Emile Akbarzadeh


1 Answers

Thanks to Mohit's comment I found the root of the problem to be that a class was at the top of the Form1.cs file. It shouldn't have been the first class in the file. I moved the class below the main class and the design view opened again.

like image 100
Emile Akbarzadeh Avatar answered Dec 17 '22 01:12

Emile Akbarzadeh