如何通过导入该dll的参考,以添加用户控件工具箱中的C#.NET的WinForms的吗? [英] How to add User control in the toolbox for C#.net for winforms by importing the dll to the reference?

查看:161
本文介绍了如何通过导入该dll的参考,以添加用户控件工具箱中的C#.NET的WinForms的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的用户控件中的一个DLL和我添加到它的引用在我的项目。现在我想访问该用户控件从工具箱中,但它不会出现在工具箱中。我可以通过写code访问它们,但我想它在工具箱中,并希望通过只拖动到窗体使用。

I have one dll of usercontrol and I add to it to the references in my project. And now I want to access this usercontrol from toolbox but it does not appear in the toolbox. And I can access them by writing code, but I want it in toolbox and want to use by just dragging it to the form.

推荐答案

您需要右键单击工具箱,选择选择项目...并浏览到包含控件的DLL。

You need to right click on the toolbox, select "Choose Items.." and browse to the dll containing the control.

这篇关于如何通过导入该dll的参考,以添加用户控件工具箱中的C#.NET的WinForms的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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