[英]Calling a ActiveX Control from within a C# Windows application
I have a requirement to have an event that calls an ActiveX control from within a C# desktop application and am not sure if this is possible firstly. 我需要有一个事件,该事件从C#桌面应用程序内部调用ActiveX控件,但不确定是否首先可以这样做。 The second problem is theoretically how is this achieved, is the ActiveX control a dll that is referenced or is it a remote executable?
从理论上讲,第二个问题是如何实现的,ActiveX控件是被引用的dll还是远程可执行文件? Or does this depend upon the ActiveX control?
还是这取决于ActiveX控件?
If someone could help steer me in the right direction and provide a link to reference that would be great. 如果有人可以帮助我指引正确的方向并提供参考链接,那将是很好的。
Many thanks. 非常感谢。
In VS, You can drag and drop activeX control on ToolBox
pan, and then use it like other controls on toolbox. 在VS中,可以将ActiveX控件拖放到“
ToolBox
窗格上,然后像在工具箱上的其他控件一样使用它。 first be sure you done regsvr32 myactivex.ocx
before. 首先,请确保您之前已完成
regsvr32 myactivex.ocx
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.