We help IT Professionals succeed at work.

How to make a OCX by c#

turbot_yu
turbot_yu asked
on
Any suggestion, thanks.
Comment
Watch Question

Project manager
CERTIFIED EXPERT
Commented:
There is no way to write an ocx in c# or vb. However you can easily
"expose" your managed usercontrols or libraries as com components to be used
by com enabled environments. To use this feature of .net please see the
documentation of tools "Regasm.exe" and "Tlbexp.exe" and also read "strong
named" assemblies in .net. Its all nicely documented in msdn and you shouldn't
have any difficulty in doing this after reading the docs.

Comment from another expert found at http://bytes.com/topic/c-sharp/answers/253895-creating-ocx-net

See also http://www.vbforums.com/showthread.php?t=529484

Explore More ContentExplore courses, solutions, and other research materials related to this topic.