473,771 Members | 2,365 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1383
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

"Viswanatha n S" <vi**@ewaksoft. com> wrote in message
news:O$******** ******@TK2MSFTN GP15.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***@executes pammers.org> wrote in message news:%2******** ********@TK2MSF TNGP12.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

"Viswanatha n S" <vi**@ewaksoft. com> wrote in message
news:O$******** ******@TK2MSFTN GP15.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***@executes pammers.org> wrote in message news:%2******** ********@TK2MSF TNGP12.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

"Viswanatha n S" <vi**@ewaksoft. com> wrote in message
news:O$******** ******@TK2MSFTN GP15.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******@discu ssions.microsof t.com> wrote in message news:D7******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message news:D7******** *************** ***********@mic rosoft.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, "Viswanatha n 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
8580
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 reference (i.e.  ) and it seems to be converting the character to its UNICODE representation. Take this source XML document: <?xml version="1.0" encoding="UTF-8"?>
1
11443
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 href="mailto:DrTebi@yahoo.com">DrTebi</a> This would work like a regular mailto link in any browser, but wouldn't be visible to spiders if they don't have a function to decode it.
0
2423
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 href="http://blah.com/?test=test&amp;amp;test2=test2">Test2&amp;amp;</a> This results in the following HTML Code:
4
3029
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: /mypage.asp?value1=1&amp;value2=4&amp; ... which of course means nothing to asp.
4
3229
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 that I could externalize my JavaScript, but that will not be practical throughout this application. Is there any way to get around this issue? Xalan processor. Stripped down stylesheet below along with XHTML output. <?xml version='1.0'?>...
8
2818
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);" TextBox2.Attributes.Add("onKeyPress", jscode) You will notice that jscode contains the JavaScript Logical And operator (&&). However, ASP.NET renders this as &amp;&amp; in the code that is
11
6443
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 and
14
5935
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 because of this, so I hope some of you gurus can enlighten me with this :) In what circumstances can the "&amp;" in the source code be involuntary changed to "&" by a browser when or other software, when editing and uploading the file to the web...
12
10117
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) ..... // xsl contents abc.aspx?p1=v1&amp;p2=<xsl:value-of select="$v2" />
7
4628
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 BeautifulSoup to clean those up? There are various parsing options related to "&" handling, but none of them seem to do quite the right thing. If I write the BeautifulSoup parse tree back out with "prettify", the loose "&" is still in there. So...
0
9619
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10261
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
10103
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
10038
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
9911
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
6713
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
5354
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
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.