Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Upgrading VB4 project to VB.NET?

51 views
Skip to first unread message

Mika Varpio

unread,
Feb 26, 2005, 6:31:56 AM2/26/05
to
Is it possible to upgrade an VB4 project to VB.NET?

Do I have to do it with VB5/6 in between or...?


Mika


Ken Tucker [MVP]

unread,
Feb 26, 2005, 9:27:16 AM2/26/05
to
Hi,

Upgrade wizard converts vb6 to vb.net

Ken
-------------
"Mika Varpio" <mika....@codeman.fi> wrote in message
news:42207f76$0$23456$7b6a...@news.mbnet.fi...

Mika Varpio

unread,
Feb 26, 2005, 10:30:33 AM2/26/05
to
Yes, but I don't have vb6, I have vb4. So do I first have to convert my vb4
project to vb5, then vb6 and then vb.net 6 or... I'm quite sure the
conversion will not be problemfree... Any other ideas?


"Ken Tucker [MVP]" <vb...@bellsouth.net> kirjoitti viestissä
news:%236CEH9A...@TK2MSFTNGP15.phx.gbl...

Jay B. Harlow [MVP - Outlook]

unread,
Feb 26, 2005, 12:23:12 PM2/26/05
to
Mika,
Unfortunately as Ken stated: Upgrade wizard converts vb6 to vb.net.

Before you upgrade your app to VB.NET I would you run the Visual Basic 6.0
Code Advisor against it first.

http://msdn.microsoft.com/vbasic/downloads/codeadvisor/default.aspx

Make any changes that it recommends, then use the Upgrade Wizard to convert
the entire project.

Depending on the size of the app, you may want to find someone with VB6 so
as you can use both the Code Advisor & the Upgrade Wizard on your project.


If locating something with VB6 is not an option, VB.NET 2003 has a "Upgrade
Visual Basic 6 Code" dialog box, which allows you to cut & paste VB6 code
into an existing VB.NET source file.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconupgradingvisualbasic60codewithupgradevb6codeadd-in.asp

I would expect VB4 should come across with some effort. The problem you are
going to have is any data access you may be doing has radically changed
since VB4.

I have not tried it with any forms, just code snippets.

Again I would really recommend finding a copy of VB6 to do any conversion of
any size.

Hope this helps
Jay

"Mika Varpio" <mika....@codeman.fi> wrote in message

news:4220944a$0$23456$7b6a...@news.mbnet.fi...

Eric Moreau (VB MVP)

unread,
Feb 27, 2005, 10:18:58 AM2/27/05
to
I am currently converting VB4 apps to .Net.

I do it manually for many reasons:
-no direct converters
-it was vb4-16
-data access methods have changed a lot
-controls have changed a lot
-I do clean up by the same time
-I create a n-tier application
-I use latest features of .Net (like OO features)

--

HTH

Éric Moreau
MCSD, Visual Developer - Visual Basic MVP
(http://aspnet2.com/mvp.ashx?EricMoreau)
Conseiller Principal / Senior Consultant
Concept S2i inc.(www.s2i.com)


"Mika Varpio" <mika....@codeman.fi> wrote in message
news:42207f76$0$23456$7b6a...@news.mbnet.fi...

0 new messages