如何在设计视图中打开 Visual Studio 项目? [英] How do I open a Visual Studio project in design view?

查看:27
本文介绍了如何在设计视图中打开 Visual Studio 项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我保存了我的项目,但现在我无法在设计视图中打开它,您可以在其中看到所有按钮和内容.视觉工作室 2012有人知道怎么做吗?

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?

推荐答案

您可以在解决方案资源管理器中直接双击代表您的表单的.cs文件:

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

这将打开 Form1.cs [Design],其中包含拖放控件.

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

如果直接在后面的代码中(名为Form1.cs的文件,没有[Design]"),可以按Shift + F7 (或仅 F7 取决于项目类型)来打开它.

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.

在设计视图中,您可以按F7切换回代码隐藏.

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

这篇关于如何在设计视图中打开 Visual Studio 项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆