如何从Assembly(DLL)添加控件 [英] How to add a control from Assembly(DLL)

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

问题描述

请告知您是否可以让我知道:

如何从Assembly(DLL)添加控件.我有一个Dll文件,我想将其添加到我的控制箱中.


谢谢
Shahnawaz

Appriciate if u can let me know:

How to add a control from Assembly(DLL). I have a Dll file , I want to add it to in my control Box.


Thanks
Shahnawaz

推荐答案

假定您希望将其添加到工具箱中,以便可以使用DLL中存在的控件.

试试这个:
在VS工具箱中,右键单击常规选项卡,然后选择选择项目"
您将能够浏览所需的DLL.浏览它,选择并按确定.现在,您将能够在工具箱中看到该DLL控件.
Assuming you want it to add it to your toolbox such that you can use the controls present in DLL.

Try this:
In VS toolbox, right click the general tab and select ''Choose items''
You will be able to browse the DLL you want to. Browse it, select and press ok. Now, you will be able to see that DLL control in your toolbox.


1)在工具箱中创建一个新标签页,或选择一个退出的标签页
2)右键点击标签,选择选择项目",等待大约5分钟(除非您使用的是VS2010),然后打开一个新对话框
3)根据您拥有的dll类型(.NET组件,COM组件或WPF组件)选择适当的选项卡.
4)单击浏览按钮,找到您的dll
5)点击确定
6)检查是否在列表视图中检查了新组件,否则对其进行检查
7)再次单击确定

瞧!
1) Create a new tab in your toolbox or select an exiting one
2) Right click the tab, select "Choose Items", wait around 5 minutes (unless you''re using VS2010) for a new dialog to open
3) Select the appropriate tab depending on what type of dll you have (.NET component, COM component or WPF component)
4) Click the Browse button and locate your dll
5) Click OK
6) Check that you new component(s) is/are checked in the listview, otherwise check it/them
7) Click OK again

Voila!


这篇关于如何从Assembly(DLL)添加控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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