Please any one tell me is it possible to use .NET controls and libraries [ created by C# ] to VB6. If so can you tell me the way and some useful existing articles regarding this query.
Thanks,
Prabu
Prabu.
Yes it is possible to call .NET assemblies from VB 6.0. You need to create a COM interface to .NET assemblies by using RegAsm and generate a type library file. Refer this MSDN article for a detailed explanation
It's not supported to host Windows Forms controls on VB6 forms.
Mattias, C# MVP
Mattias Sjögren
Hi,
Thanks for the support. Now I am able to use .net libraries to VB6. But I have one more problem. The behaviours like overloading constructors, methods and method return to the object functionalities are can not seems to be work in VB6.
Prabu
Prabu.
Prabu. wrote:
Hi,
Thanks for the support. Now I am able to use .net libraries to VB6. But I have one more problem. The behaviours like overloading constructors, methods and method return to the object functionalities are can not seems to be work in VB6.
Every Com Visable class must have a empty ctor, and make sure you use only basic types as return values or you own types! For example if you want to return an Color, don't return a instance of the Color struct, but return an Integer that contains the colors ARGB.
** Microsoft Community Moderator ** http://born2code.net **
PJ. van de Sande
Prabu. wrote:
Hi,
Please any one tell me is it possible to use .NET controls and libraries [ created by C# ] to VB6. If so can you tell me the way and some useful existing articles regarding this query.
Thanks,
Yes this is
PJ. van de Sande
PJ. van de Sande wrote:
Yes this is
Mattias Sjögren
Mattias Sjögren wrote:
ActiveX control containers that support .NET controls