在解决方案资源管理器中双击窗体并在 Visual Studio 的代码视图中打开的属性是什么?

发布于 2024-08-01 13:59:04 字数 121 浏览 4 评论 0原文

我曾经知道一个类属性,您可以将类设置为“表单”或“代码”,如果将表单设置为“代码”,则在解决方案资源管理器中双击它的文件,将在代码视图中打开该表单而不是默认的表单视图。

我不记得这个属性叫什么了,有人知道吗?

I used to know of a class attribute that you could set your classes as "form" or as "code" and if you set a form as "code", double clicking it's file in the Solution Explorer, would open the form in code view instead of the default form view.

I can't remember what's that attribute called, anyone knows?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

半寸时光 2024-08-08 13:59:04

没关系,找到了:

[System.ComponentModel.DesignerCategory("code")]

Nevermind, found it:

[System.ComponentModel.DesignerCategory("code")]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文