By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,915 Members | 1,335 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,915 IT Pros & Developers. It's quick & easy.

Making C# User Controls Visible to Visual Basic 6.0 Applications

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.