473,761 Members | 5,163 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Experience of converting VB6 applications to Visual Basic.net

Hi there

My compay has a number of Visual Basic 6 applications which are front endeed onto
either SQL Server or Microsoft Access databases.

Now we are in process of planning to re-write these applications into Visual Basic.Net.

My managers main thought is that Visual Basic 6 is (or has!) stopped being supported
by Microsoft.

He needs to present a case to the managers for it

I have 2 questions for you

1) What are the main perceived benefits of Visual Basic.net over Visual Basic 6?
when you have re-written legacy applications?

2) What were the good and bad experiences you had in this process?

We need to present as case to the board of how the company will benefit from
a migration from vb6 to vb.net

Many thanks

Chris
May 16 '07 #1
4 3096
As one opinion column I read some time back said, the effort to convert from
VB6 to .NET is going to be worthwhile, but just barely--initially. But in
the long run, it will pay off big time. This has been backed up by my own
experience. There are a lot of important differences between VB6 and VB.NET
and the conversion will be hard work. But the possibilities it will open up
to you for the future are fantastic. So that would be my answer to your
first question. For your second question: my worst experience was in
converting painting code, not because it was hard, but because it was so
disappointingly slow. GDI+ does not benefit from the hardware acceleration
that has grown up around GDI. That may (hopefully) change as time goes by,
but we'll see. There are also some weirdnesses with font/text rendering with
GDI+. Other than painting (and some API manipulations you're unlikely to be
using), I found feature after feature that was better and easier in .NET.
Overall my conversion experience was a very positive one--not to say it
wasn't hard work, because it's so very different--but it was exciting. As
for the specifics of how you'll benefit, it's going to depend on exactly
what your software does, and what it might need to do in the future.

I believe Microsoft is planning to stop official support of VB6 next year
(not certain of that), although I'd be surprised if you can't still get
unofficial help in the visual basic classic newsgroups
(microsoft.publ ic.vb.*) for a long time after that, as there is still a
strongly devoted group of people sticking with it.

Incidentally--though it depends on your group and your management--I'd
recommend jumping straight to C# if possible. Maybe that's just a personal
preference. There are lots of similarities between the two, both being based
on .NET, but I find C# easier to read and write--it's more concise and
elegant, and it's a better foundation from which to branch off into other
languages should your team ever need to do so. Again, it depends on your
team's readiness for that extra bit of learning curve, and what you can get
by your management. But the differences between VB6 and VB.NET are greater
than the differences between VB.NET and C#.NET.

--
Brian Schwartz
FishNet Components
http://www.fishnetcomponents.com
Fish Grid .NET Light: Powerful Layouts for Small Datasets
-----"Chris Asaipillai" <ch************ **@btinternet.c omwrote in message
news:46******** **************@ news.zen.co.uk. ..
Hi there

My compay has a number of Visual Basic 6 applications which are front endeed
onto
either SQL Server or Microsoft Access databases.

Now we are in process of planning to re-write these applications into Visual
Basic.Net.

My managers main thought is that Visual Basic 6 is (or has!) stopped being
supported
by Microsoft.

He needs to present a case to the managers for it

I have 2 questions for you

1) What are the main perceived benefits of Visual Basic.net over Visual
Basic 6?
when you have re-written legacy applications?

2) What were the good and bad experiences you had in this process?

We need to present as case to the board of how the company will benefit from
a migration from vb6 to vb.net

Many thanks

Chris
May 16 '07 #2

The good part about going from vb to vb.net is that you can use alot of the same syntax.
The bad part about going from vb to vb.net is that you can use alot of the same syntax.

My opinion ( << only 1 of many >) is that you can bring bad vb6 habits with you.
First off, if you go vb.net, make sure you go to project properties and select "Option Explicit ON" and "Option Strict On".

MS was caught, because it was trying to give vb6'ers (me included) a break when going to .Net.
But that was in conflict with having code that the compiler will give you warnings with.

Second. ADO is not ADO.NET. DO NOT RELY ON CONVERSION WIZARDS. If you see the word "ADODB" (as in ADODB.Recordset ) in your .Net code, you're way off.

5 years ago you could have argued it wasn't a good thing.
Now, I think its not much of an argument.
You need to go to .Net.

Try calling MS and asking for help with a VB4 (16 bit) issue.

MS forces advancement, you just gotta play their game.

Most people could write pages and pages. Me too. But tha'ts what I got off the top of my head.

"Chris Asaipillai" <ch************ **@btinternet.c omwrote in message news:46******** **************@ news.zen.co.uk. ..
Hi there

My compay has a number of Visual Basic 6 applications which are front endeed onto
either SQL Server or Microsoft Access databases.

Now we are in process of planning to re-write these applications into Visual Basic.Net.

My managers main thought is that Visual Basic 6 is (or has!) stopped being supported
by Microsoft.

He needs to present a case to the managers for it

I have 2 questions for you

1) What are the main perceived benefits of Visual Basic.net over Visual Basic 6?
when you have re-written legacy applications?

2) What were the good and bad experiences you had in this process?

We need to present as case to the board of how the company will benefit from
a migration from vb6 to vb.net

Many thanks

Chris
May 16 '07 #3
//I'd
recommend jumping straight to C# if possible. Maybe that's just a personal
preference. //
I'd also vote that way.

Mainly because you **cannot** bring bad vb6 habits with you going this
route.

I was a vb6'er for a long time. It paid the bills for a long time.

This is just my (one) opinion among many.

But the argument that "its easier to go from vb to vb.net because of
syntax.... I'm not keen on.

OO is the bigger consideration. Not language syntax.
http://www.codeproject.com/dotnet/CSharpVersusVB.asp
and a rebuttal
http://www.codeproject.com/useritems/C___Versus_VB.asp

will throw some fuel on the fire as well.


"Brian Schwartz" <ow***@fishnetc omponentswos.co mwrote in message
news:ed******** ******@TK2MSFTN GP03.phx.gbl...
As one opinion column I read some time back said, the effort to convert
from
VB6 to .NET is going to be worthwhile, but just barely--initially. But in
the long run, it will pay off big time. This has been backed up by my own
experience. There are a lot of important differences between VB6 and
VB.NET
and the conversion will be hard work. But the possibilities it will open
up
to you for the future are fantastic. So that would be my answer to your
first question. For your second question: my worst experience was in
converting painting code, not because it was hard, but because it was so
disappointingly slow. GDI+ does not benefit from the hardware acceleration
that has grown up around GDI. That may (hopefully) change as time goes by,
but we'll see. There are also some weirdnesses with font/text rendering
with
GDI+. Other than painting (and some API manipulations you're unlikely to
be
using), I found feature after feature that was better and easier in .NET.
Overall my conversion experience was a very positive one--not to say it
wasn't hard work, because it's so very different--but it was exciting. As
for the specifics of how you'll benefit, it's going to depend on exactly
what your software does, and what it might need to do in the future.

I believe Microsoft is planning to stop official support of VB6 next year
(not certain of that), although I'd be surprised if you can't still get
unofficial help in the visual basic classic newsgroups
(microsoft.publ ic.vb.*) for a long time after that, as there is still a
strongly devoted group of people sticking with it.

Incidentally--though it depends on your group and your management--I'd
recommend jumping straight to C# if possible. Maybe that's just a personal
preference. There are lots of similarities between the two, both being
based
on .NET, but I find C# easier to read and write--it's more concise and
elegant, and it's a better foundation from which to branch off into other
languages should your team ever need to do so. Again, it depends on your
team's readiness for that extra bit of learning curve, and what you can
get
by your management. But the differences between VB6 and VB.NET are greater
than the differences between VB.NET and C#.NET.

--
Brian Schwartz
FishNet Components
http://www.fishnetcomponents.com
Fish Grid .NET Light: Powerful Layouts for Small Datasets
-----"Chris Asaipillai" <ch************ **@btinternet.c omwrote in message
news:46******** **************@ news.zen.co.uk. ..
Hi there

My compay has a number of Visual Basic 6 applications which are front
endeed
onto
either SQL Server or Microsoft Access databases.

Now we are in process of planning to re-write these applications into
Visual
Basic.Net.

My managers main thought is that Visual Basic 6 is (or has!) stopped being
supported
by Microsoft.

He needs to present a case to the managers for it

I have 2 questions for you

1) What are the main perceived benefits of Visual Basic.net over Visual
Basic 6?
when you have re-written legacy applications?

2) What were the good and bad experiences you had in this process?

We need to present as case to the board of how the company will benefit
from
a migration from vb6 to vb.net

Many thanks

Chris


May 16 '07 #4
In answer to your first question:

the .net platform will give you much more flexibility with your
applications (doesn't matter if you choose c# or vb). You will get a
lot more built in controls to help you display your data, it will be
easier to find resources to work on your applications in the future. I
have found it is getting harder to find people willing to go back in
time with various frameworks when they know they will not be able to
go anywhere in the future. This isn't just a microsoft thing it is an
every language thing. It's not easy to find someone who is going to be
willing to write cobal. With the .net platform there are many tools
that will help with development and deployment.

In answer to your second question:

I haven't really had any bad esperiances with migration. Some of the
stumbling blocks come with web apps if you are switching from classic
asp to asp.net. If you are doing just winforms, it gets easy to strip
off your bussiness logic and put it in webservices and still have your
vb apps running but hitting the webservices which is a good way to go
if you ever want to devlop a web front end then you will not have to
rewrite your bussiness logic.

On May 16, 4:33 am, "Chris Asaipillai"
<chris.asaipil. ..@btinternet.c omwrote:
Hi there

My compay has a number of Visual Basic 6 applications which are front endeed onto
either SQL Server or Microsoft Access databases.

Now we are in process of planning to re-write these applications into Visual Basic.Net.

My managers main thought is that Visual Basic 6 is (or has!) stopped being supported
by Microsoft.

He needs to present a case to the managers for it

I have 2 questions for you

1) What are the main perceived benefits of Visual Basic.net over Visual Basic 6?
when you have re-written legacy applications?

2) What were the good and bad experiences you had in this process?

We need to present as case to the board of how the company will benefit from
a migration from vb6 to vb.net

Many thanks

Chris

May 17 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2470
by: mustafa | last post by:
Dear sir , I have built my application in visual basic 6.0 and crystal Report8.5 , Now i migrated my application to VB.net using the upgrade wizard.My visual basic form is upgraded to vb.net but my .dsr file that i created using crystalReport is not migrated , when i try to convert it into .rpt file using add new item in Vb.net Envs it give me the error in the log file saying,
6
3671
by: Terry Bell | last post by:
We've had a very large A97 app running fine for the last seven years. I've just converted to SQL Server backend, which is being tested, but meanwhile the JET based version, running under terminal server, has suddenly started running very slowly. The network engineer has thrown up his hands and said "It's Access 97". I've checked out lots of things including the Oplocks setting and other stuff from this NG, and I think I've done everything...
5
524
by: john | last post by:
I searched http://www.sellsbrothers.com. and could not find anything about this subject. How do I make C# User Controls Visible to Visual Basic 6.0 Applications? Thanks, John
3
5328
by: Meher Malakapalli | last post by:
Hi, I have converted a VB 6 App to VB.NET App but when I try to run the application in the VB.NET IDE I get the following compile error. 'ScaleTop' is not a member of 'System.Windows.Forms.Panel' 'ScaleLeft' is not a member of 'System.Windows.Forms.Panel'. 'ScaleLeft' is not a member of 'HPCheck.frmReportViewer'. Does any one know how to get rid of this error?. I was wondering what is the
6
1869
by: Luke Vogel | last post by:
Hi all ... could someone point me in the right direction for programming office applications (specifically excel) using vb.net? Can vb.net replace or enhance VBA that comes with the office suite? cheers... have a great Christmas all! -- Regards Luke. ----- There are 10 types of people in this world
2
2916
by: Marty | last post by:
Hi, I have a very big VB6 program to convert to VB.NET 2003. When I use the ..NET converter, it convert up to a point where the converter just hang and never finish the job. The converter is not freezing, it is at approx. 80% that the converter just hang (with almost 0% CPU from task manager). Is there a VB6 code validator to run on my program to be sure that it is convertable?
32
12515
by: robert d via AccessMonster.com | last post by:
I'm looking at converting DAO to ADO in my app. All of my DAO connections are of the following structure: Dim wsName As DAO.Workspace Dim dbName As DAO.Database Dim rsName As DAO.Recordset Set wsName = DBEngine.Workspaces(0) Set dbName = wsName.OpenDatabase(CurrentProject.FullName) Set rsName = dbName.OpenRecordset("SQL Statement")
4
6194
by: jeff | last post by:
We current a VS 2005 Professional license ... what does this Microsoft Visual Studio 2005 Tools for Applications offer that VS 2005 does not? Any help would be greatly appreciated. Thanks JEff.
28
3594
by: Randy Reimers | last post by:
(Hope I'm posting this correctly, otherwise - sorry!, don't know what else to do) I wrote a set of programs "many" years ago, running in a type of basic, called "Thoroughbred Basic", a type of business basic. I need to re-write it, bring it kicking and screaming to run on Windows XP. This is for a video rental place, tracks movie and game rentals, customers, employee transactions, reservations, does reports,..... and on. I know some of...
0
9336
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10111
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9948
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9902
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9765
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8770
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6603
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5364
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.