470,591 Members | 1,566 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,591 developers. It's quick & easy.

Making C# User Controls Visible to Visual Basic 6.0 Applications

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.
Nov 15 '05 #1
1 3824
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.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Miquel Taberner" <mt*******@slash-solutions.com> wrote in message
news:d3**************************@posting.google.c om...
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.

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Jeff M | last post: by
8 posts views Thread by Jim M | last post: by
7 posts views Thread by Chuck | last post: by
2 posts views Thread by Scott | last post: by
2 posts views Thread by jfolland | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.