简体   繁体   中英

Designer View Disappeared (Visual Studios C#)

I am making a soundboard and I accidentally closed the design view tab for it.

  1. I pressed shift + f7 - nothing happened.
  2. I right clicked on forum1.cs in Solution Explorer and Design View wasn't there.
  3. I clicked on view at the top left corner of Visual Studios and Design View wasn't there.

How can I get design view back? (I'm also new to c#)

First class in namespace must inherit from Form.

Example of working code:

namespace Test
{
    public partial class Form1 : Form
    {
         Debug.WriteLine("Hello World!")
    }
    class your_class
    {

    }
}

Example of "not" working code:

Namespace Test
{
    class your_class
    {

    }
    public partial class Form1 : Form
    {
         Debug.WriteLine("Hello World!")
    }
}

Hi I tried solution from this link ( https://stackoverflow.com/a/59750247/3828925 ) which seems to work for me finally after trying a lot of different things. Basically you click on the "Switch between solutions and available views" once which shows just the solution and then click again. It takes a few seconds but then I was able to see my forms.

在此处输入图像描述

have you checked under Tools>Options then scroll to XAML Designer and make sure the "Enable XAML Designer (requires restart of Visual Studio)" checkbox is clicked on? This is for Visual Studio 2017

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM