如何向我的 Visual Studio 添加窗口?

发布于 2024-09-08 03:49:33 字数 181 浏览 2 评论 0原文

我创建了一个加载项项目,现在我的解决方案资源管理器中有此项目:

alt text

我只需添加右键单击解决方案并添加Windows窗体?我不确定这是如何工作的,而且我找到的教程没有涉及这一点。

谢谢。

I created an Add-in project and now I have this in my solution explorer:

alt text

Do I just add right click the solution and add a Windows form? I'm not sure how this works and the tutorials I find don't touch on this.

Thanks.

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

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

发布评论

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

评论(1

简单爱 2024-09-15 03:49:33

您可以右键单击解决方案文件下的项目文件,然后选择添加新项目。顺便说一句,您似乎缺少“Microsoft.CSharp”的引用;这需要从您的项目中解决或删除。

以下是实例化表单并以最基本的方式显示它的方法。

Form f = new Form();
f.Show();

希望这会有所帮助。

享受吧!

You can right click the project file under the solution file and select add new item. Btw it looks like you have a missing reference for "Microsoft.CSharp though; that will need to be resolved or removed from your project.

Here is how you instantiate a form and show it in the most basic sense.

Form f = new Form();
f.Show();

Hope this helps.

Enjoy!

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