How do I open a Visual Studio project in design view?

后端 未结 4 1309
春和景丽
春和景丽 2020-12-03 09:47

I saved my project, but now I can\'t open it up in design view where you see all the buttons and stuff. Visual Studio 2012 Anyone know how?

4条回答
  •  情歌与酒
    2020-12-03 10:05

    You can double click directly on the .cs file representing your form in the Solution Explorer :

    This will open Form1.cs [Design], which contains the drag&drop controls.

    If you are directly in the code behind (The file named Form1.cs, without "[Design]"), you can press Shift + F7 (or only F7 depending on the project type) instead to open it.

    From the design view, you can switch back to the Code Behind by pressing F7.

提交回复
热议问题