New to Dot Net

  • Thread starter Thread starter Sébastien Côté
  • Start date Start date
S

Sébastien Côté

Hi everybody!

I'm about migrate from VB6 to .Net, and i'd like to know exactly what are
the benefits (real ones) and how i may "import" my old projects. I know
there's many web sites on this, but i want opinion of people who switch from
VB6 on large projects...

Please forgive my poor english!

Thanks alot

Seb
 
Sebastien:

There are too many benefits to mention but to name a few:

1) Strongly typing
2) A very poweful IDE that's probably the most user friendly ever made
3) Support for threading and Windows Services is straightforward
4) Much more powerful printing and drawing capabilities
5) Excellent support for Regular Expressions without having to access the
VBScript library
6) Truly object oriented. Forms have to be instantiated as do all
reference type objects
7) you can use a VB.NET assembly with any .NET language
8) Zero based arrays
9) Structured Exception Handling
10) Greatly enhanced XML support
11) Data Access that's light years more sophisticated than ADO
12) Consitent object properties, easier to use controls etc

I could go on and on but like you mentioned, there are web sites dedicated
to the subject.

As far as converting your projects, just run the upgrade wizard. Depending
on how you coded your stuff, you may have tons of changes, you may have
relatively few or none...but that depends on the coding style and how big
the projects are (not that big projects inherently have more problems, it's
just more likely to have some issues in a large project than a smaller one).

HTH,

Bill
 
Sébastien Côté said:
Hi everybody!

I'm about migrate from VB6 to .Net, and i'd like to know exactly what are
the benefits (real ones) and how i may "import" my old projects. I know
there's many web sites on this, but i want opinion of people who switch from
VB6 on large projects...

Please forgive my poor english!

Thanks alot

Seb

I was in the same shoes you are in now. There's a buttload of improvements,
but some stuff that will annoy you. My biggest annoyance was Control
Arrays, which have gone bye-bye. Mainly, the dependancy on ActiveX is
history, and someother cute things. BTW, lemme give you a hint about
upgrade Wizard, it sucks! I'm rewriting one of my major data applications
from scratch, taking advantage of being able to create controls at run-time,
the addhandlers statement, and tons of other things. Just post in here any
major questions you may have, there's lot's of great folks in here wholove
to help.

BTW, try this:

Dim Test As String = "Hello"

MsgBox(Test.ToUpper)

or

MsgBox(Test.SubString(1,1))

or

MsgBox(Test.Replace("H","e")) '// Pretty sure that's how that went LOL

Just about everything is an object class in the framework, and there really
is somegreat things and time-savors, for instance:

[VB6]
Dim I As Integer
I =0
I = I + 5

[VB.NET]
Dim I As Integer

I += 5

FileIO has drastically changed as well. There is some annoyances with
syntax and changes to the language, but once you get past those, well, just
Multi-threading and System Services alone make it worth it!

HTH,
Sueffel
 
Hi Sébastien,

Only one little addition to the others, if you are going to upgrade from VB6
to VB.net and you want to use the automatic method, be than sure that you
use VB.net 2003.

Although the updating is never as we wish, it is much approaved comparing it
with VB.net 2002

Cor.
 
Back
Top