Search code examples
wpfwinformsactivex

How to use WinForms/WPF as ActiveX control?


I would like to use WinForms/WPF controls as if they were ActiveX controls.

Specifically I would like to host these controls inside SAP Business One or it may be outside of SAP B1.

Is this possible at all? If yes, I would like to see some examples.

Thanks in advance,


Solution

  • Yes, it's possible. The machine running SAP Business One will still need the .NET framework, of course, but yes, you can expose your controls as ActiveX objects.

    Have a look at this article: WPF Vista Gadgets using ActiveX. Referenced in that article is a sample WPF ActiveX control. That should get you started.