简体   繁体   中英

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. The second problem is theoretically how is this achieved, is the ActiveX control a dll that is referenced or is it a remote executable? Or does this depend upon the ActiveX control?

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. first be sure you done regsvr32 myactivex.ocx before.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM