如何添加一个用户控件工具箱? [英] How do I add a user control to toolbox?

查看:256
本文介绍了如何添加一个用户控件工具箱?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的C#应用​​程序来创建工具箱CustomControl

I want to create a CustomControl in toolbox in my C# application

推荐答案

如果您的组件是该项目中,您可以让他们自动添加到工具箱中。转到:工具 - >选项 - > Windows窗体设计器并启用AutoToolboxPopulate选项

If your component is within the project, you can have them automatically added to the toolbox. Go to: Tools -> Options -> Windows Forms Designer and enable the "AutoToolboxPopulate" option.

如果它在一个单独的解决方案,可以生成控件库,以及拖放在工具箱中添加组件。

If it's in a separate solution, you can build the control library, and drag and drop on the toolbox to add the components.

这篇关于如何添加一个用户控件工具箱?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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