WinForm中的ActiveX [英] activex in winform
问题描述
我需要在.Net WinForm中放入一些activeX。
提供程序给我发送了一个.tlb和com .dll。
I need to put some activeX in my .Net WinForm. The provider had sent me a .tlb and the com .dll.
够了吗?
如何将其放在winform上?
Is this enough? How do I put it on winform?
推荐答案
那应该足够了。您需要在计算机上注册该dll,将其添加到dev studio工具箱(右键单击工具箱/选择项目),然后转到COM选项卡,如果找不到该dll,则可以浏览到具体位置,然后选择要使用的类型库。
That should be sufficent. You'll need to register that dll on your machine, add it to the dev studio Toolbox (Right click on the toolbox/Choose Items) and go to the COM tab, if you can't find it in there you can browse to the specific location and select the Type Library to use.
之后,您只需将新控件拖到窗体上即可。对库的引用将自动添加到您的项目中。
After that you can just drag the new control to your form. A Reference to the library will be added to your project automatically.
这篇关于WinForm中的ActiveX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!