473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

VB.NET & VB6

Hi All!

What is the major difference or advantage of using VB.NET to create
application compare to Visual Basic 6.0?
Thanks in Advance
S. Viswanathan
Nov 21 '05 #1
8 1371
I would answer a manager: Why create any new projects in a language that is
now by definition legacy?

I would answer a developer: .NET experience will teach you that VB6 isn't a
serious programming language.

Paul

"Viswanathan S" <vi**@ewaksoft.com> wrote in message
news:O$**************@TK2MSFTNGP15.phx.gbl...
Hi All!

What is the major difference or advantage of using VB.NET to create
application compare to Visual Basic 6.0?
Thanks in Advance
S. Viswanathan

Nov 21 '05 #2
"Paul" <no***@executespammers.org> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl...
I would answer a manager: Why create any new projects in a language that is
now by definition legacy?
I agree that there would be no reason to do so, assuming that you don't already have a large investment in legacy code that has been
thouroughly tested and would have to be rewritten in order to utilize it. If you are starting with a clean slate I would say go
with VB.Net.

I would answer a developer: .NET experience will teach you that VB6 isn't a
serious programming language.

Obviously you don't have any serious experience with VB6. I doubt that any programmer who moved from VB5/6 to VB.Net magically
became a serious professional programmer, either.

VB.net is a great language and has greatly improved with the VB2005, but that does not diminish that thousands of serious and
critical business applications have been written with VB6. The decision to break compatibility between VB6 and VB.Net is a serious
issue that should not be taken lightly. How serious depends on your position. Deadending VB6 may be great if you are a
programmer/developer, but maybe not so great if you own the assets and have to foot the bill.
Paul

"Viswanathan S" <vi**@ewaksoft.com> wrote in message
news:O$**************@TK2MSFTNGP15.phx.gbl...
Hi All!

What is the major difference or advantage of using VB.NET to create
application compare to Visual Basic 6.0?
Thanks in Advance
S. Viswanathan


Nov 21 '05 #3
> Obviously you don't have any serious experience with VB6.

You may disagree with my assessment, but that's just not true.
I doubt that any programmer who moved from VB5/6 to VB.Net magically
became a serious professional programmer, either.


It's not magic, but the transition can be a very good influence on technique
and understanding. 3 years of coding in VB6 vs 3 years of coding in any
DotNet language is just not the same. I could go into why VB6 can be a
crippling language to use, but here that would be both preaching to the
choir and beating a dead horse.

I'm not trying to belittle anyone's experience using VB6 - obviosuly there
is some very serious stuff you can do in it - please take my (perhaps
biased) point of view as something that comes from my never wanting to go
back.

Paul
Nov 21 '05 #4
>What is the major difference or advantage of using VB.NET to create
application compare to Visual Basic 6.0?

There are a couple of facets to this question.

At the basic technical level

- VB.Net is a fully OO language. Notwithstanding the troll-thread
about Procedural vs. OO, this is a good thing.
Implementation Inheritance of classes and the nicely done
visual inheritance of forms speed up development a great deal.
The ability to subclass controls and add specific behaviour is
a big plus.
- Streams - they are a BIG improvement over the previous file
access methods and provide a lot of flexibility that was just not
previously available (using memory streams in place of file
streams, customized readers/writers for acting on the streams
- Exception handling instead on On Error
- Delivered libraries providing lots of support for a range of
functionalty - e.g. XML, Sockets, Threading, Diagnostics
- Reflection
On the support side

- Microsoft is going to end support for VB6 at some point (can't find
the date at the moment, if some else knows of an
authoritative source for this i'd add appreciate them posting it)
- There will be no VB7 based upon the current VB6 technologies, all
new improvements will happen on the VB.Net side of
the house.

Nov 21 '05 #5
Well if you were developing COM based application using VB6 you can easily
integrate VB.NET based COM components. We have a huge amount of legacy VB6
code and have extended it using COM components written in VB.NET.
Eventually, the .NET classes will become the majority and then we'll drop all
VB6 development. In the meantime, there is no reason to dump all VB6 for
VB.NET. Using COM Interop you can have both. And, development of new
features using .NET is significantly faster. (Once you get over the learning
curve).

"Al Reid" wrote:
"Paul" <no***@executespammers.org> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl...
I would answer a manager: Why create any new projects in a language that is
now by definition legacy?


I agree that there would be no reason to do so, assuming that you don't already have a large investment in legacy code that has been
thouroughly tested and would have to be rewritten in order to utilize it. If you are starting with a clean slate I would say go
with VB.Net.

I would answer a developer: .NET experience will teach you that VB6 isn't a
serious programming language.


Obviously you don't have any serious experience with VB6. I doubt that any programmer who moved from VB5/6 to VB.Net magically
became a serious professional programmer, either.

VB.net is a great language and has greatly improved with the VB2005, but that does not diminish that thousands of serious and
critical business applications have been written with VB6. The decision to break compatibility between VB6 and VB.Net is a serious
issue that should not be taken lightly. How serious depends on your position. Deadending VB6 may be great if you are a
programmer/developer, but maybe not so great if you own the assets and have to foot the bill.
Paul

"Viswanathan S" <vi**@ewaksoft.com> wrote in message
news:O$**************@TK2MSFTNGP15.phx.gbl...
Hi All!

What is the major difference or advantage of using VB.NET to create
application compare to Visual Basic 6.0?
Thanks in Advance
S. Viswanathan



Nov 21 '05 #6
"TrtnJohn" <Tr******@discussions.microsoft.com> wrote in message news:D7**********************************@microsof t.com...
Well if you were developing COM based application using VB6 you can easily
integrate VB.NET based COM components. We have a huge amount of legacy VB6
code and have extended it using COM components written in VB.NET.
Eventually, the .NET classes will become the majority and then we'll drop all
VB6 development. In the meantime, there is no reason to dump all VB6 for
VB.NET. Using COM Interop you can have both. And, development of new
features using .NET is significantly faster. (Once you get over the learning
curve).


Learning curve is not an issue. VB.Net is just another of many languages I have used over the years. In fact, I'm coding in VB.Net
right now. No big deal. It's a new application w/o any VB or COM legacy code and therefore it was an ideal fit for .Net.

However, I also maintain a large code base in VB6. It will probably stay that way until some compelling reason comes along and
forces the issue. There is no reason to invest time and money moving the applications to .Net when there is zero payback.

So my point is/was to use VB.Net for new development and to stick with VB6 for legacy applications until there is a compelling
reason to switch. Once that reason presents itself, then develop a plan to migrate it forward. That may include COM interop,
rewriting/refactoring, etc.

--
Al Reid
Nov 21 '05 #7
The language syntax really is fairly trivial. The learning curve is more
related to the .NET framework than the actual programming language. Also,
software design is different due to the greater OO capabilities of VB.NET
versus VB6. VB.NET finally is a fairly robust OO language. It does require
some learning to take advantage of this and to not just code the old VB way.

Regardless, I agree with not moving a large VB6 code base in one giant
conversion. (I still have one myself). But, once you understand the
benefits of VB.NET you will want to find every way possible to take advantage
of them. Our VB6 base is still supported. But, we take every opportunity
to convert when they arise. For example: Major component modification, user
interface enhancements, new functions, ... Eventually I hope we get to a
point where the VB6 is the minority. At that point, the total conversion may
make sense. GL and happy VBing...

"Al Reid" wrote:
"TrtnJohn" <Tr******@discussions.microsoft.com> wrote in message news:D7**********************************@microsof t.com...
Well if you were developing COM based application using VB6 you can easily
integrate VB.NET based COM components. We have a huge amount of legacy VB6
code and have extended it using COM components written in VB.NET.
Eventually, the .NET classes will become the majority and then we'll drop all
VB6 development. In the meantime, there is no reason to dump all VB6 for
VB.NET. Using COM Interop you can have both. And, development of new
features using .NET is significantly faster. (Once you get over the learning
curve).


Learning curve is not an issue. VB.Net is just another of many languages I have used over the years. In fact, I'm coding in VB.Net
right now. No big deal. It's a new application w/o any VB or COM legacy code and therefore it was an ideal fit for .Net.

However, I also maintain a large code base in VB6. It will probably stay that way until some compelling reason comes along and
forces the issue. There is no reason to invest time and money moving the applications to .Net when there is zero payback.

So my point is/was to use VB.Net for new development and to stick with VB6 for legacy applications until there is a compelling
reason to switch. Once that reason presents itself, then develop a plan to migrate it forward. That may include COM interop,
rewriting/refactoring, etc.

--
Al Reid

Nov 21 '05 #8
On Fri, 29 Jul 2005 19:57:30 +0530, "Viswanathan S" <vi**@ewaksoft.com> wrote:

¤ Hi All!
¤
¤ What is the major difference or advantage of using VB.NET to create
¤ application compare to Visual Basic 6.0?
¤

The biggest advantage for VB.NET is the fact that there will be future support and enhancements for
this version. The disadvantage is that a rather large run time (the .NET Framework) is required for
VB.NET apps.
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 21 '05 #9

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

Similar topics

9
by: Collin VanDyck | last post by:
I have a basic understanding of this, so forgive me if I am overly simplistic in my explanation of my problem.. I am trying to get a Java/Xalan transform to pass through a numeric character...
1
by: DrTebi | last post by:
Hello, I have the following problem: I used to "encode" my email address within links, in order to avoid (most) email spiders. So I had a link like this: <a...
0
by: Thomas Scheffler | last post by:
Hi, I runned in trouble using XALAN for XSL-Transformation. The following snipplet show what I mean: <a href="http://blah.com/?test=test&amp;test2=test2">Test1&amp;</a> <a...
4
by: Luklrc | last post by:
Hi, I'm having to create a querysting with javascript. My problem is that javscript turns the "&" characher into "&amp;" when it gets used as a querystring in the url EG: ...
4
by: johkar | last post by:
When the output method is set to xml, even though I have CDATA around my JavaScript, the operaters of && and < are converted to XML character entities which causes errors in my JavaScript. I know...
8
by: Nathan Sokalski | last post by:
I add a JavaScript event handler to some of my Webcontrols using the Attributes.Add() method as follows: Dim jscode as String = "return (event.keyCode>=65&&event.keyCode<=90);"...
11
by: Jeremy | last post by:
How can one stop a browser from converting &amp; to & ? We have a textarea in our system wehre a user can type in some html code and have it saved to the database. When the data is retireved...
14
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
12
by: InvalidLastName | last post by:
We have been used XslTransform. .NET 1.1, for transform XML document, Dataset with xsl to HTML. Some of these html contents contain javascript and links. For example: // javascript if (a &gt; b)...
7
by: John Nagle | last post by:
I've been parsing existing HTML with BeautifulSoup, and occasionally hit content which has something like "Design & Advertising", that is, an "&" instead of an "&amp;". Is there some way I can get...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
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...

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.