Creating ActiveX DLL using .NET - is it possible?

H

Hvitebj?rn

I have created a graphical control using C#.NET and made it
COM-compatible using the method described here:
http://www.codeproject.com/cs/miscctrl/exposingdotnetcontrols.asp

Adding the control to a VB 6.0 form works fine - with one important
exception: the control disappears (except for any label/text on the
control) if the user clicks the .NET-made control (giving it focus)
and then clicks a button or other control which is not part of the
..NET-made control (removing focus).

Any ideas? Is it at all possible? Any help is greatly appreciated.
 
M

Mattias Sjögren

Any ideas? Is it at all possible?

It doesn't work very well (as you've seen) and isn't supported, so I'd
advice against trying to use Winforms controls as ActiveX controls.



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top