简体   繁体   English

从C#Windows应用程序中调用ActiveX控件

[英]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.

相关问题 从C#WPF应用程序中的ActiveX控件中删除讨厌的3D边框 - Remove the nasty 3D Border from an ActiveX Control within a C# WPF Application 是否可以在C#.NET CF中为Windows Mobile编写ActiveX控件? - Is it possible to write an ActiveX control in C# .NET CF for windows mobile? 控制台应用程序来自 Windows 表单应用程序 C# - Control console application from Windows form application C# 在C#应用程序的脚本中调用PowerShell函数 - Calling PowerShell function from within the script in C# Application C#应用程序中的Web ActiveX - Web ActiveX in C# application 在Windows应用程序中从C#调用javascript __dopostback函数 - Calling javascript __dopostback function, from C# in windows application 从C#WPF应用程序调用非托管Windows DLL时出错 - Error calling an unmanaged windows DLL from a C# WPF application 使用C#Windows应用程序中的参数调用ClearCanvas exe - Calling ClearCanvas exe with arguments from c# windows application 银行应用程序-在C#中从类调用Windows窗体 - Banking Application - Calling from a class to a windows form in c# 从 C# Windows 应用程序调用存储过程的错误结果 - Wrong result calling stored procedure from C# Windows application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM