Making C# User Controls Visible to Visual Basic 6.0 Applications

  • Thread starter Miquel Taberner
  • Start date
M

Miquel Taberner

Hi there,

I want to know if there's any way to put an user control developed in
C# into the toolbox of our old friend Visual Basic 6.0. The reason for
that is to start to migrate the code to C# step by step and keep using
legacy interfaces. I've just achieved to include the library as a DLL
but I'm not able to visualize the component into the toolbox.

I've added the class in runtime to a form, and I can see the control,
but still I don't have access to the methods or properties. On the
other side, I've created an object with the name of the class and I've
been able to access all the proerties and methods ( and even debugging
with .NET ) but I hadn't been able to show it in the form.

Any help, Any Hint?

Thanks in Advance.

Miquel Taberner.
 
N

Nicholas Paldino [.NET/C# MVP]

Miquel,

.NET doesn't officially support exporting controls as ActiveX controls.
It was in one of the early betas for the original release, but was then
dropped. However, Chris Sells (I believe) found a way to do it with some
settings and interface implementations. You can try checking out his
website http://www.sellsbrothers.com.

Hope this helps.
 

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