gpt4 book ai didi

.net - 如何将用户控件添加到 Visual Studio 2010 中的 Windows 窗体应用程序?

转载 作者:行者123 更新时间:2023-12-02 15:41:31 25 4
gpt4 key购买 nike

如何在 Visual Studio 2010 中向 Windows 窗体应用程序添加用户控件?

最佳答案

您可以尝试来自 How to put a UserControl into Visual Studio toolBox 的建议.然而,我没有成功,但最终我找到了解决方案。

我的步骤:

  1. 新建 Winforms 项目(创建包含 Form1 的项目)
  2. 新用户控件(重建)
  3. 转到解决方案资源管理器并单击工具栏上的“显示所有文件”。
  4. 展开 Form1 并打开 Form1.Designer.vb (.cs)
  5. 用户控件现在位于工具箱中。

我没有解释。

关于.net - 如何将用户控件添加到 Visual Studio 2010 中的 Windows 窗体应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4569486/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com