Can we use any C# or VB.NET controls or components in VB 6.0?
or
Is there any place where we can get free controls or components for VB 6.0?

Recommended Answers

All 2 Replies

Maybe this http://msdn.microsoft.com/en-us/library/ms973802.aspx can be helpfull.

In many ways, I don't think it's possible to use some proper objects (like the FORM object or SPLIT object) from net directly in your VB6 application.

But, if you have non-graphical classes that you can use, see the link above on how to create classes and exposes it through COM components - the one that VB6 reads.

Of course, to use this class you created in .NET, the .NET environment NEED to be installed on the machine, cause it uses "managed code" and will not run without the .NET DLLs.


Good luck,
Sidnei

Is there any place where we can get free controls or components for VB 6.0?

You can use any search engine and type the right keyword for search it.

use any C# or VB.NET controls or components in VB 6.0

Assuming that this is a DLL written in C#, you can place a copy of the DLL in the bin directory of your VB application. You can then your DLL assembly by its name space by using the Imports statement along with Imports System,etc. It should now be available and should work like any other .NET control in VB.NET.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.