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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With