gpt4 book ai didi

c# - 我可以使用哪些项目模板来创建 winform dll 库?

转载 作者:太空宇宙 更新时间:2023-11-03 18:24:55 26 4
gpt4 key购买 nike

visual studio 中哪些项目模板适合创建 Winform dll 库。我想用它来创建插件界面窗口。我正在寻找 Wiforms 中 WPF 用户控件库 的替代方案。

最佳答案

创建Windows 窗体控件库 更合适。

A project for creating controls to use in Windows Forms Applications

这样就把windows窗体相关的程序集添加到项目中了,你不需要自己添加。除了类库项目之外,它还有这些引用:

  • System.Drawing
  • System.Windows.Forms

如果你打开添加新项目对话框,你可以在这个路径中找到它:

  • Visual C# > Windows 桌面 > Windows 窗体控件库
  • Visual Basic > Windows 桌面 > Windows 窗体控件库

关于c# - 我可以使用哪些项目模板来创建 winform dll 库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36775268/

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