Solved

Resource for Converting from Visual Basic 6.0 to Visual Studio 2005

Posted on 2007-11-14
5
379 Views
Last Modified: 2008-02-01
Hi,

I just converted two small projects from Visual Basic 6.0 to Visual Studio 2005.  After resolving the 300 upgrade warnings, my project is running just like before.  However, I am interested in updating the conventions I use in programming.  Is there a good resource that compares Visual Basic 6.0 to Visual Studio 2005 and provides the "newer" methods.  For example, is there a better way to connect to data sources than ADO with Visual Studio?  

Thanks
0
Comment
Question by:tlchavet
5 Comments
 
LVL 14

Assisted Solution

by:Matti
Matti earned 100 total points
ID: 20281482
Hi!

ADO .NET, there is a sample:
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=5854&lngWId=10

If you use old ADO it needs interop dll for it, this latest user framework.

Matti
0
 
LVL 48

Accepted Solution

by:
jpaulino earned 250 total points
ID: 20281515
You can go to MSDN webpage and you will find videos, webcast, etc
http://msdn2.microsoft.com/en-us/vs2005/aa700853.aspx

or download this free books
Introducing Microsoft Visual Basic 2005 for Developers
http://msdn2.microsoft.com/pt-br/vbrun/ms788235.aspx

Upgrading Microsoft Visual Basic 6.0 to Microsoft Visual Basic .NET
http://msdn2.microsoft.com/pt-br/vbrun/ms788236.aspx
0
 
LVL 1

Author Comment

by:tlchavet
ID: 20281608
Is there a good reference book out there on Visual Studio?
0
 
LVL 1

Author Comment

by:tlchavet
ID: 20281618
Thanks a bunch for the information!
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 20281781
"I am interested in updating the conventions I use in programming."

Hi tlchavet,

I would take it to a whole other level.  Try not to focus on simply what is the "equivalent" syntax, or what library do we use instead of the old one from VB6.  Instead, to really leverage the power of the VB.Net you need to change your entire methodology!  You must learn to think in terms of TRUE object oriented programming.  Though it is sometimes possible to convert old code and make it work as it did before...many times if that same app was developed from the ground up in .Net it would have been designed completely differently because different technologies were available.  VB6 was only a "pseudo" object oriented language, and as such, forced us into doing things in ways that don't always work well in .Net.

Try to find some VB.Net books that focus on designing with OOP in mind.  Unfortunately I don't have any to reccomend as most of my experience is from the "self taught" camp.  =\

~IM
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question