Add/Import VB6 form into VB.NET project

  • Thread starter Thread starter vul
  • Start date Start date
V

vul

I'm just starting to learn VB.NET (VS 2005). I opened VB6 project in VB.NET.
It was converted by wizard into .NET with many warnings and errors.
I was wondering if it's possible to start let's say a new .NET project and
add 1 existing VB6 form into it. So far I couldn't find the way to do that.
Either it doesn't allow to add an existing module (Add->Windows Form) or it
adds but like a .frm file without any conversion (Add->Existing Item).
As I understand if the wizard can convert all forms at once, there should be
the way to convert a single file.

Thank you
Al
 
vul said:
I'm just starting to learn VB.NET (VS 2005). I opened VB6 project in VB.NET.
It was converted by wizard into .NET with many warnings and errors.
I was wondering if it's possible to start let's say a new .NET project and
add 1 existing VB6 form into it. So far I couldn't find the way to do that.
Either it doesn't allow to add an existing module (Add->Windows Form) or it
adds but like a .frm file without any conversion (Add->Existing Item).
As I understand if the wizard can convert all forms at once, there should be
the way to convert a single file.
IMHO your options are:
-You can create a VB6 project with that single file
-You can let VS.NET 2005 translate you complete VB6 project to VB2005,
then exclude the files you are not interested in (Right Click->Exclude
From Project)
 
Thank you.
I have a project with about 100 modules. Most of them have references to
each other. So, it's very hard to follow your suggestion as I understand.

Al
 
Back
Top