Is there a way to convert files from VB.NET to VB6?
Printable View
Is there a way to convert files from VB.NET to VB6?
No .
Can you take the forms tha you build and put them into a VB6 project?
No.
Ok. Thanks for the help!
you cant use a vb.net form in vb6 no , but you can build a dll in .net and then make it so it compatible for use in vb6.
to do this :
1 ) open a new project "ClassLibrary"
2 ) remove the class form.
3 ) go to Project on top menu and select Add Component.
4 ) add a new Component Class
5 ) build your code as required in that class
6 ) open the visual studio .net command promt
7 ) type the following , making sure you put the correct locations.
that will build a dll / typelib that will be available for reference in vb6 , eg i made a quick test dll and set it to be available to vb6 , this was the message in the command promt :Code:"C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Bin\tlbexp.exe" "C:\MyProject\Bin\MyProject.dll"
Code:C:\Documents and Settings\den>"D:\Program Files\Microsoft Visual Studio .NET\Fra
meworkSDK\Bin\tlbexp.exe" "D:\ClassLibrary2.dll"
Microsoft (R) .NET Framework Assembly to Type Library Converter 1.0.3705.0
Copyright (C) Microsoft Corporation 1998-2001. All rights reserved.
Assembly exported to C:\Documents and Settings\den\ClassLibrary2.tlb
C:\Documents and Settings\den>
It is also a waste of time and resources. You know have a program that requires 2 sets of dependencies. Not smart.
Indeed .
I was asking because the college uses VB6 and a friend has VB.NET. I was asking on his behalf.