Вопрос

How can I add an ActiveX control to my C# solution in Xamarin Studio?!
I'm still learning C# and don't want to use Visual Studio because that would imply that I must learn both VStudio and Xamarin shortcuts, etc, because I use both OS on a daily basis.
I've just installed Xamarin, developed some quick solutions to give it a try, and haven't found this on documentation.

NOTE: This is a software that will be running on Windows only.
Thanks.

Это было полезно?

Решение

After digging a little more, found it was very easy. Just use:

aximp name_of_ocx_control

And then add it as a reference on the solution.

Другие советы

Unfortunately @HighCore was right. There is no way you will be able to use ActiveX on Mono on other platforms because it is Microsoft's proprietary Framework. I mean: C# and .NET had their specifications publicly opened by Microsoft may years ago, so Mono was built using these specs. There are no specs or licenses that allows us to use ActiveX on other platforms. There are some workarounds like wine and such, but they don't play well with mono. It is very hard to make them work together.

Mono does not implement OCX controls and ActiveX outside of Windows Environment. You will have to use other technologies when running outside of windows. ActiveX controls (or OCX) are COM/COM+ components and Mono doesn't work with it. Mono project developers suggest using Mozilla's XPCOM technology.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top