N/APosted on - 02/10/2013
I made a large C# code and I was wondering if I can create OCX with .NET. I'm using Windows XP 64-bit sp2. Can someone tell me or teach me on how to write ocx using .NET? Thanks in advance.
How to write ocx using .NET?
There's very few reasons to use an OCX nowadays. Therefore, unfortunately, the answer to your question is – no, you can't create an OCX with .NET.
I'd suggest you to use the CCW-invoked .NET assembly as a better solution. As I don't know what you need an OCX for, I can only suggest you, besides already mentioned to try an Add-in or Visual Studio Tools for Office as a decent ways to solve your problems.