SlideShare a Scribd company logo
1 of 18
5/21/2015 1
Presentation
Vb6 vs VB.net
Differences between VB6 & VB.net?
5/21/2015 2
Introduction
More than three years ago, the Microsoft Visual Basic team set out to create
Visual Basic .NET. At that time managers would kid the development team by
saying that they were making only three “simple” changes to Visual Basic 6: a
new runtime system, a new development environment, and a new compiler.
The Visual Basic development team spent the next three years working on
one of these changes: the new compiler. Two other teams provided the
development environment and runtime. As we pointed out in Chapter 1, the
end result is not a new version of Visual Basic 6 but an entirely new product:
Microsoft Visual Basic .NET. The name is important for two reasons. First,
Visual Basic is still Visual Basic. Second, Visual Basic .NET is not Visual Basic 7.
5/21/2015 3
Visual Basic
Visual Basic (also termed Visual Basic.NET or VB) is a major
revision of earlier Microsoft VB products.
· This latest version is Version 10 of VB.
· This is an upgrade of earlier.NET versions.
· The current and earlier versions are not completely
compatible—a program coded with an earlier version that is
upgraded to the current version cannot be opened again with
the earlier version software.
· Version 6 and earlier are not .NET-compatible – programs
created with these versions are completely incompatible with
.NET applications.
5/21/2015 4
.NET Framework
The .NET Framework is composed of two general parts: the
common language runtime and the Framework class library.
The runtime is the foundation upon which the .NET
Framework is based. It provides the basic services on which
all .NET applications depend: code execution, memory
management, thread management and code security. The
Framework class library provides building blocks for
creating a variety of .NET applications, components, and
services.
5/21/2015 5
Overview
VB6 and VB.NET:
The VB6 and VB.NET transcend the languages. VB.NET is part of a
brand new platform, based on the .NET Framework. All languages in
.NET are based on this new platform, which allows many great new
capabilities for a VB developer. Because the .NET Framework is fully
object-oriented, .NET languages also must support OO features. The
result is that VB.NET is fully object-oriented. This is a huge difference
and is a powerful improvement over previous version of VB. It also
introduces another level of complexity along with this new power.
In many ways, VB.NET can be seen as an entirely new language. Oh,
much of the syntax is still there, and yes, much of it has changed. But
the real differences in VB.NET are in the way we accomplish various
tasks. Everything is done through the .NET Framework. All .NET
languages use the same .NET classes - C#, VB, COBOL, J#, etc.
5/21/2015 6
Overview(con’t…)
The greatest change in VB6 and VB.NET is of runtime
environment. VB6 used the VB-Runtime while VB.NET uses
the .Net Common Language Runtime (.Net CLR). The CLR is
much better designed and implemented than VB-Runtime.
The CLR uses better code translation through Just in Time
compiler while VB-Runtime interprets the code. The CLR
Garbage Collector is also more efficient than VB6 one as it
may detect cyclic references too.
VB6 was interpreter based language while VB.NET is a
compiled language VB6 was not a type-safe language while
VB.NET is a type safe language.
5/21/2015 7
There are a lot of differences:
 Inheritance
 Exception Handling
 Overloading
 Overriding Properties and Methods
 Constructors and Destructors
 Data Types
 Interfaces
 Delegates
 Namespaces
 Attributes
 Shared Members
 Multithreading
 Memory Management
For detail check the down notes section
5/21/2015 8
Some ther differences>>>>
5/21/2015 9
VB6 vs VB.NET
VB 6 programs require significant modification to run
under VB .NET
VB6 was interpreter based language while VB.NET is a
compiled language
The greatest change in VB6 and VB.NET is of runtime
environment. VB6 used the VB-Runtime while VB .NET
adheres to the Common Language Specification (CLS) for
language interoperability which is also shared with C#.
VB 4, 5, and 6 were backward compatible VB .NET is not
backward compatible
VB6 was not a type-safe language while VB.NET is a type
safe language. There is no variant type in VB.NET and no
type conversions happen automatically in VB.NET
5/21/2015 10
A lot of code (like user interface code) in VB6 was
hidden from developer. In VB.NET no code is hidden
from developer and you can access and control each
part of your application and it now has C-like Syntax
VB .NET is now has object oriented programming
features
Arrays is 0 based in VB .NET. i.e when you declare an
array in vb6 "Dim Items(5) As String" you would get an
array with 6 elements but in VB.NET it would be 5
items now.
5/21/2015 11
VB2008.NET VB6 Difference
Short Integer 16 Bit
Integer Long 32 Bit
Long 64 Bit
Object Variant
Variant Dropped use the
new Object Data Type
Decimal
String String
No Fixed Length String
in Vb.NET
Currency
Use Decimal or long in
vb2008
5/21/2015 12
No More Variant, Currency Data Types in VB.NET, you also get the new
data types in Visual Basic. NET called Object other changes are as follow.
VB6 was only considered good for desktop windows
application. In VB.NET you can develop web applications,
distributed applications, create .NET windows and web
controls and components, write windows and web services.
In VB.NET, you can also use reflections to read the meta-
data of types and using reflection emit you can also
generate code to define and invoke types at runtime.
VB.NET uses .NET framework class library along with
specialized VB library (System.VisualBasic) as a standard
library. As a result, the standard library for VB.NET is much
enhanced and useful compared to VB6 standard library
5/21/2015 13
VB.NET is platform independent because of .Net framework.
Programs written in VB.NET can run on any platform where
.Net framework is present. The platform include both
hardware and software (operating system) platforms.
VB.NET also supports language interoperability with various
.NET compliant languages. This means that you can use and
enhance the code written in other .NET compliant languages.
Similarly the code written in VB.NET can also be used and
enhanced by other .NET compliant languages. Although VB6
also provided this functionality through COM but it was limited
and difficult to use and manage.
5/21/2015 14
VB.Net makes it easier because of the presence of
Intermediate Language (IL) and Common Language
Specification (CLS) of the .NET architecture.
VB6 uses COM (Component Object Model) as component
architecture. VB.NET uses assemblies as its component
architecture.
The Assemblies architecture has removed a lot of
problems with COM including DLL-Hell and versioning
problem.
Components created in VB6 (COM) need to make and
update registry entries. VB.NET does not require any
registry entry making the deployment easier.
5/21/2015 15
Since VB.NET is a natural evolution of VB - and
indeed its replacement .
5/21/2015 16
Conclusion
As we can see, quite a bit is involved in the three “simple”
changes that the teams made to create Visual Basic .NET.
Despite all of these changes, you should find the
development environment, compiler, and language familiar.
The skills that you have acquired using Visual Basic 6 are
not lost when you upgrade to Visual Basic .NET. The way
you create, run, and debug a Visual Basic .NET application is
nearly identical to the process you are already familiar with.
After all, Visual Basic is still Visual Basic. The spirit is alive
and well in Visual Basic .NET.
5/21/2015 17
Thank You
@iftkr
iftkr.wordpress.com
5/21/2015 18

More Related Content

What's hot

Introduction to Google App Engine
Introduction to Google App EngineIntroduction to Google App Engine
Introduction to Google App Enginerajdeep
 
Chapter 2 - HTML5.pdf
Chapter 2 - HTML5.pdfChapter 2 - HTML5.pdf
Chapter 2 - HTML5.pdfMhndHTaani
 
Analogue & Digital
Analogue & DigitalAnalogue & Digital
Analogue & Digitalk13086
 
2022's Most Popular Programming Languages for UI Test Automation
2022's Most Popular Programming Languages for UI Test Automation2022's Most Popular Programming Languages for UI Test Automation
2022's Most Popular Programming Languages for UI Test AutomationApplitools
 
Vmware vSphere Api Best Practices
Vmware vSphere Api Best PracticesVmware vSphere Api Best Practices
Vmware vSphere Api Best PracticesPablo Roesch
 
video compression techique
video compression techiquevideo compression techique
video compression techiqueAshish Kumar
 
TCP-IP Reference Model
TCP-IP Reference ModelTCP-IP Reference Model
TCP-IP Reference ModelMukesh Tekwani
 
Speech Application Language Tags (SALT)
Speech Application Language Tags (SALT)Speech Application Language Tags (SALT)
Speech Application Language Tags (SALT)Vignaraj Gadvi
 
Multimedia graphics and image data representation
Multimedia graphics and image data representationMultimedia graphics and image data representation
Multimedia graphics and image data representationMazin Alwaaly
 
Chapter 4 : SOUND
Chapter 4 : SOUNDChapter 4 : SOUND
Chapter 4 : SOUNDazira96
 
Service manual-acer-aspire-5710-5710 g-5310-5310g
Service manual-acer-aspire-5710-5710 g-5310-5310gService manual-acer-aspire-5710-5710 g-5310-5310g
Service manual-acer-aspire-5710-5710 g-5310-5310gmumbutu
 
Chapter 4 - Digital Transmission
Chapter 4 - Digital TransmissionChapter 4 - Digital Transmission
Chapter 4 - Digital TransmissionWayne Jones Jnr
 
VVC HLS overview .pdf
VVC HLS overview .pdfVVC HLS overview .pdf
VVC HLS overview .pdfKaramSingh80
 

What's hot (20)

H263.ppt
H263.pptH263.ppt
H263.ppt
 
Html forms
Html formsHtml forms
Html forms
 
Ip addressing classless
Ip addressing classlessIp addressing classless
Ip addressing classless
 
Vlan
Vlan Vlan
Vlan
 
Introduction to Google App Engine
Introduction to Google App EngineIntroduction to Google App Engine
Introduction to Google App Engine
 
Chapter 2 - HTML5.pdf
Chapter 2 - HTML5.pdfChapter 2 - HTML5.pdf
Chapter 2 - HTML5.pdf
 
Analogue & Digital
Analogue & DigitalAnalogue & Digital
Analogue & Digital
 
2022's Most Popular Programming Languages for UI Test Automation
2022's Most Popular Programming Languages for UI Test Automation2022's Most Popular Programming Languages for UI Test Automation
2022's Most Popular Programming Languages for UI Test Automation
 
Vmware vSphere Api Best Practices
Vmware vSphere Api Best PracticesVmware vSphere Api Best Practices
Vmware vSphere Api Best Practices
 
Preguntas examen IV
Preguntas examen IVPreguntas examen IV
Preguntas examen IV
 
Digital Audio in Multimedia
Digital Audio in MultimediaDigital Audio in Multimedia
Digital Audio in Multimedia
 
video compression techique
video compression techiquevideo compression techique
video compression techique
 
TCP-IP Reference Model
TCP-IP Reference ModelTCP-IP Reference Model
TCP-IP Reference Model
 
Speech Application Language Tags (SALT)
Speech Application Language Tags (SALT)Speech Application Language Tags (SALT)
Speech Application Language Tags (SALT)
 
Multimedia chapter 2
Multimedia chapter 2Multimedia chapter 2
Multimedia chapter 2
 
Multimedia graphics and image data representation
Multimedia graphics and image data representationMultimedia graphics and image data representation
Multimedia graphics and image data representation
 
Chapter 4 : SOUND
Chapter 4 : SOUNDChapter 4 : SOUND
Chapter 4 : SOUND
 
Service manual-acer-aspire-5710-5710 g-5310-5310g
Service manual-acer-aspire-5710-5710 g-5310-5310gService manual-acer-aspire-5710-5710 g-5310-5310g
Service manual-acer-aspire-5710-5710 g-5310-5310g
 
Chapter 4 - Digital Transmission
Chapter 4 - Digital TransmissionChapter 4 - Digital Transmission
Chapter 4 - Digital Transmission
 
VVC HLS overview .pdf
VVC HLS overview .pdfVVC HLS overview .pdf
VVC HLS overview .pdf
 

Viewers also liked

Visual basic ppt for tutorials computer
Visual basic ppt for tutorials computerVisual basic ppt for tutorials computer
Visual basic ppt for tutorials computersimran153
 
Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)pbarasia
 
Visual basic 6 jose martinez terminado
Visual basic 6 jose martinez terminadoVisual basic 6 jose martinez terminado
Visual basic 6 jose martinez terminadojose martinez
 
Visual Basic Codes And Screen Designs
Visual Basic Codes And Screen DesignsVisual Basic Codes And Screen Designs
Visual Basic Codes And Screen Designsprcastano
 
Difference between cts and cls
Difference between cts and clsDifference between cts and cls
Difference between cts and clsUmar Ali
 
Organizingand Finding Resourceswith Office Share Point Server2007
Organizingand Finding Resourceswith Office Share Point Server2007Organizingand Finding Resourceswith Office Share Point Server2007
Organizingand Finding Resourceswith Office Share Point Server2007LiquidHub
 
Step by-step -visual_basic_2008_express_edition_by__microsoft_corporation
Step by-step -visual_basic_2008_express_edition_by__microsoft_corporationStep by-step -visual_basic_2008_express_edition_by__microsoft_corporation
Step by-step -visual_basic_2008_express_edition_by__microsoft_corporationMuhammad Martayuda
 
Presentation on Visual Studio
Presentation on Visual StudioPresentation on Visual Studio
Presentation on Visual StudioMuhammad Aqeel
 
Dotnet framework
Dotnet frameworkDotnet framework
Dotnet frameworkNitu Pandey
 
Introduction to vb.net
Introduction to vb.netIntroduction to vb.net
Introduction to vb.netSaad Wazir
 
A step by step procedure in project management
A step by step procedure in project managementA step by step procedure in project management
A step by step procedure in project managementTobby Hedges
 
Introduction to .NET Framework and C# (English)
Introduction to .NET Framework and C# (English)Introduction to .NET Framework and C# (English)
Introduction to .NET Framework and C# (English)Vangos Pterneas
 
Memory organisation
Memory organisationMemory organisation
Memory organisationankush_kumar
 

Viewers also liked (20)

Visual basic ppt for tutorials computer
Visual basic ppt for tutorials computerVisual basic ppt for tutorials computer
Visual basic ppt for tutorials computer
 
Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)
 
Introduction to Visual Studio.NET
Introduction to Visual Studio.NETIntroduction to Visual Studio.NET
Introduction to Visual Studio.NET
 
Visual basic 6 jose martinez terminado
Visual basic 6 jose martinez terminadoVisual basic 6 jose martinez terminado
Visual basic 6 jose martinez terminado
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
 
Visual Basic Codes And Screen Designs
Visual Basic Codes And Screen DesignsVisual Basic Codes And Screen Designs
Visual Basic Codes And Screen Designs
 
Difference between cts and cls
Difference between cts and clsDifference between cts and cls
Difference between cts and cls
 
Organizingand Finding Resourceswith Office Share Point Server2007
Organizingand Finding Resourceswith Office Share Point Server2007Organizingand Finding Resourceswith Office Share Point Server2007
Organizingand Finding Resourceswith Office Share Point Server2007
 
Step by-step -visual_basic_2008_express_edition_by__microsoft_corporation
Step by-step -visual_basic_2008_express_edition_by__microsoft_corporationStep by-step -visual_basic_2008_express_edition_by__microsoft_corporation
Step by-step -visual_basic_2008_express_edition_by__microsoft_corporation
 
Presentation on Visual Studio
Presentation on Visual StudioPresentation on Visual Studio
Presentation on Visual Studio
 
Dotnet framework
Dotnet frameworkDotnet framework
Dotnet framework
 
Visual Studio IDE
Visual Studio IDEVisual Studio IDE
Visual Studio IDE
 
Introduction to vb.net
Introduction to vb.netIntroduction to vb.net
Introduction to vb.net
 
A step by step procedure in project management
A step by step procedure in project managementA step by step procedure in project management
A step by step procedure in project management
 
Visual studio introduccion
Visual studio introduccionVisual studio introduccion
Visual studio introduccion
 
Microsoft visual basic 6
Microsoft visual basic 6Microsoft visual basic 6
Microsoft visual basic 6
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 
Introduction to .NET Framework and C# (English)
Introduction to .NET Framework and C# (English)Introduction to .NET Framework and C# (English)
Introduction to .NET Framework and C# (English)
 
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET Framework
 
Memory organisation
Memory organisationMemory organisation
Memory organisation
 

Similar to Vb6 vs vb.net....(visual basic) presentation

DOT NET TRaining
DOT NET TRainingDOT NET TRaining
DOT NET TRainingsunil kumar
 
Rcs project Training Bangalore
Rcs project Training BangaloreRcs project Training Bangalore
Rcs project Training BangaloreSunil Kumar
 
Introduction to vb.net
Introduction to vb.netIntroduction to vb.net
Introduction to vb.netJaya Kumari
 
Visual basic
Visual basicVisual basic
Visual basicDharmik
 
Microsoft .NET 6 -What's All About The New Update
Microsoft .NET 6 -What's All About The New UpdateMicrosoft .NET 6 -What's All About The New Update
Microsoft .NET 6 -What's All About The New UpdateAdam John
 
Introduction to .net
Introduction to .net Introduction to .net
Introduction to .net Jaya Kumari
 
Unit -II Introduction to visual programming.pdf
Unit -II Introduction to visual programming.pdfUnit -II Introduction to visual programming.pdf
Unit -II Introduction to visual programming.pdfUjwala Junghare
 
Overview of .Net Framework
Overview of .Net FrameworkOverview of .Net Framework
Overview of .Net FrameworkNeha Singh
 
tutorials-visual-studio_visual-studio-2015-preview-comes-with-emulator-for-an...
tutorials-visual-studio_visual-studio-2015-preview-comes-with-emulator-for-an...tutorials-visual-studio_visual-studio-2015-preview-comes-with-emulator-for-an...
tutorials-visual-studio_visual-studio-2015-preview-comes-with-emulator-for-an...Anil Sharma
 
Announcing asp.net core updates in .net 5 preview 8
Announcing asp.net core updates in .net 5 preview 8Announcing asp.net core updates in .net 5 preview 8
Announcing asp.net core updates in .net 5 preview 8Concetto Labs
 
Dotnet ch1
Dotnet ch1Dotnet ch1
Dotnet ch1007laksh
 
.Net framework vs .net core a complete comparison
.Net framework vs .net core  a complete comparison.Net framework vs .net core  a complete comparison
.Net framework vs .net core a complete comparisonKaty Slemon
 
.Net Core - not your daddy's dotnet
.Net Core - not your daddy's dotnet.Net Core - not your daddy's dotnet
.Net Core - not your daddy's dotnetRick van den Bosch
 
Microsfot’s .NET 5 Is All Set To Prove It’s Worth.pdf
Microsfot’s .NET 5 Is All Set To Prove It’s Worth.pdfMicrosfot’s .NET 5 Is All Set To Prove It’s Worth.pdf
Microsfot’s .NET 5 Is All Set To Prove It’s Worth.pdfMoon Technolabs Pvt. Ltd.
 

Similar to Vb6 vs vb.net....(visual basic) presentation (20)

DOT NET TRaining
DOT NET TRainingDOT NET TRaining
DOT NET TRaining
 
Rcs project Training Bangalore
Rcs project Training BangaloreRcs project Training Bangalore
Rcs project Training Bangalore
 
Introduction to vb.net
Introduction to vb.netIntroduction to vb.net
Introduction to vb.net
 
Visual basic
Visual basicVisual basic
Visual basic
 
Microsoft .NET 6 -What's All About The New Update
Microsoft .NET 6 -What's All About The New UpdateMicrosoft .NET 6 -What's All About The New Update
Microsoft .NET 6 -What's All About The New Update
 
Introduction to .net
Introduction to .net Introduction to .net
Introduction to .net
 
Unit -II Introduction to visual programming.pdf
Unit -II Introduction to visual programming.pdfUnit -II Introduction to visual programming.pdf
Unit -II Introduction to visual programming.pdf
 
Overview of .Net Framework
Overview of .Net FrameworkOverview of .Net Framework
Overview of .Net Framework
 
tutorials-visual-studio_visual-studio-2015-preview-comes-with-emulator-for-an...
tutorials-visual-studio_visual-studio-2015-preview-comes-with-emulator-for-an...tutorials-visual-studio_visual-studio-2015-preview-comes-with-emulator-for-an...
tutorials-visual-studio_visual-studio-2015-preview-comes-with-emulator-for-an...
 
Announcing asp.net core updates in .net 5 preview 8
Announcing asp.net core updates in .net 5 preview 8Announcing asp.net core updates in .net 5 preview 8
Announcing asp.net core updates in .net 5 preview 8
 
Vb.net class notes
Vb.net class notesVb.net class notes
Vb.net class notes
 
.Net Migration
.Net Migration .Net Migration
.Net Migration
 
Dotnet basics
Dotnet basicsDotnet basics
Dotnet basics
 
Dotnet ch1
Dotnet ch1Dotnet ch1
Dotnet ch1
 
.Net framework vs .net core a complete comparison
.Net framework vs .net core  a complete comparison.Net framework vs .net core  a complete comparison
.Net framework vs .net core a complete comparison
 
Beginners introduction to asp.net
Beginners introduction to asp.netBeginners introduction to asp.net
Beginners introduction to asp.net
 
Grade 9 COMPUTER
Grade 9 COMPUTERGrade 9 COMPUTER
Grade 9 COMPUTER
 
.Net Core - not your daddy's dotnet
.Net Core - not your daddy's dotnet.Net Core - not your daddy's dotnet
.Net Core - not your daddy's dotnet
 
Microsfot’s .NET 5 Is All Set To Prove It’s Worth.pdf
Microsfot’s .NET 5 Is All Set To Prove It’s Worth.pdfMicrosfot’s .NET 5 Is All Set To Prove It’s Worth.pdf
Microsfot’s .NET 5 Is All Set To Prove It’s Worth.pdf
 
Programming with c#
Programming with c#Programming with c#
Programming with c#
 

More from Iftikhar Ahmad

A new robust video watermarking technique using h_264_aac_codec luma componen...
A new robust video watermarking technique using h_264_aac_codec luma componen...A new robust video watermarking technique using h_264_aac_codec luma componen...
A new robust video watermarking technique using h_264_aac_codec luma componen...Iftikhar Ahmad
 
Cover letter for fresh job seeker teaching intensip,fresh teacher
Cover letter for fresh job seeker  teaching intensip,fresh teacherCover letter for fresh job seeker  teaching intensip,fresh teacher
Cover letter for fresh job seeker teaching intensip,fresh teacherIftikhar Ahmad
 
Monitors & workstation,Donald ch-2
Monitors & workstation,Donald ch-2Monitors & workstation,Donald ch-2
Monitors & workstation,Donald ch-2Iftikhar Ahmad
 
Image processing research proposal
Image processing research proposalImage processing research proposal
Image processing research proposalIftikhar Ahmad
 
complete Php code for a project .... (hospital management system)
complete Php code for a project .... (hospital management system)complete Php code for a project .... (hospital management system)
complete Php code for a project .... (hospital management system)Iftikhar Ahmad
 
Database 2 ddbms,homogeneous & heterognus adv & disadvan
Database 2 ddbms,homogeneous & heterognus adv & disadvanDatabase 2 ddbms,homogeneous & heterognus adv & disadvan
Database 2 ddbms,homogeneous & heterognus adv & disadvanIftikhar Ahmad
 
Hospital management system (php project) web engineering
Hospital management system (php project) web engineeringHospital management system (php project) web engineering
Hospital management system (php project) web engineeringIftikhar Ahmad
 
Hospital management system(database)
Hospital management system(database)Hospital management system(database)
Hospital management system(database)Iftikhar Ahmad
 

More from Iftikhar Ahmad (8)

A new robust video watermarking technique using h_264_aac_codec luma componen...
A new robust video watermarking technique using h_264_aac_codec luma componen...A new robust video watermarking technique using h_264_aac_codec luma componen...
A new robust video watermarking technique using h_264_aac_codec luma componen...
 
Cover letter for fresh job seeker teaching intensip,fresh teacher
Cover letter for fresh job seeker  teaching intensip,fresh teacherCover letter for fresh job seeker  teaching intensip,fresh teacher
Cover letter for fresh job seeker teaching intensip,fresh teacher
 
Monitors & workstation,Donald ch-2
Monitors & workstation,Donald ch-2Monitors & workstation,Donald ch-2
Monitors & workstation,Donald ch-2
 
Image processing research proposal
Image processing research proposalImage processing research proposal
Image processing research proposal
 
complete Php code for a project .... (hospital management system)
complete Php code for a project .... (hospital management system)complete Php code for a project .... (hospital management system)
complete Php code for a project .... (hospital management system)
 
Database 2 ddbms,homogeneous & heterognus adv & disadvan
Database 2 ddbms,homogeneous & heterognus adv & disadvanDatabase 2 ddbms,homogeneous & heterognus adv & disadvan
Database 2 ddbms,homogeneous & heterognus adv & disadvan
 
Hospital management system (php project) web engineering
Hospital management system (php project) web engineeringHospital management system (php project) web engineering
Hospital management system (php project) web engineering
 
Hospital management system(database)
Hospital management system(database)Hospital management system(database)
Hospital management system(database)
 

Recently uploaded

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterMateoGardella
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 

Recently uploaded (20)

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 

Vb6 vs vb.net....(visual basic) presentation

  • 2. Presentation Vb6 vs VB.net Differences between VB6 & VB.net? 5/21/2015 2
  • 3. Introduction More than three years ago, the Microsoft Visual Basic team set out to create Visual Basic .NET. At that time managers would kid the development team by saying that they were making only three “simple” changes to Visual Basic 6: a new runtime system, a new development environment, and a new compiler. The Visual Basic development team spent the next three years working on one of these changes: the new compiler. Two other teams provided the development environment and runtime. As we pointed out in Chapter 1, the end result is not a new version of Visual Basic 6 but an entirely new product: Microsoft Visual Basic .NET. The name is important for two reasons. First, Visual Basic is still Visual Basic. Second, Visual Basic .NET is not Visual Basic 7. 5/21/2015 3
  • 4. Visual Basic Visual Basic (also termed Visual Basic.NET or VB) is a major revision of earlier Microsoft VB products. · This latest version is Version 10 of VB. · This is an upgrade of earlier.NET versions. · The current and earlier versions are not completely compatible—a program coded with an earlier version that is upgraded to the current version cannot be opened again with the earlier version software. · Version 6 and earlier are not .NET-compatible – programs created with these versions are completely incompatible with .NET applications. 5/21/2015 4
  • 5. .NET Framework The .NET Framework is composed of two general parts: the common language runtime and the Framework class library. The runtime is the foundation upon which the .NET Framework is based. It provides the basic services on which all .NET applications depend: code execution, memory management, thread management and code security. The Framework class library provides building blocks for creating a variety of .NET applications, components, and services. 5/21/2015 5
  • 6. Overview VB6 and VB.NET: The VB6 and VB.NET transcend the languages. VB.NET is part of a brand new platform, based on the .NET Framework. All languages in .NET are based on this new platform, which allows many great new capabilities for a VB developer. Because the .NET Framework is fully object-oriented, .NET languages also must support OO features. The result is that VB.NET is fully object-oriented. This is a huge difference and is a powerful improvement over previous version of VB. It also introduces another level of complexity along with this new power. In many ways, VB.NET can be seen as an entirely new language. Oh, much of the syntax is still there, and yes, much of it has changed. But the real differences in VB.NET are in the way we accomplish various tasks. Everything is done through the .NET Framework. All .NET languages use the same .NET classes - C#, VB, COBOL, J#, etc. 5/21/2015 6
  • 7. Overview(con’t…) The greatest change in VB6 and VB.NET is of runtime environment. VB6 used the VB-Runtime while VB.NET uses the .Net Common Language Runtime (.Net CLR). The CLR is much better designed and implemented than VB-Runtime. The CLR uses better code translation through Just in Time compiler while VB-Runtime interprets the code. The CLR Garbage Collector is also more efficient than VB6 one as it may detect cyclic references too. VB6 was interpreter based language while VB.NET is a compiled language VB6 was not a type-safe language while VB.NET is a type safe language. 5/21/2015 7
  • 8. There are a lot of differences:  Inheritance  Exception Handling  Overloading  Overriding Properties and Methods  Constructors and Destructors  Data Types  Interfaces  Delegates  Namespaces  Attributes  Shared Members  Multithreading  Memory Management For detail check the down notes section 5/21/2015 8
  • 10. VB6 vs VB.NET VB 6 programs require significant modification to run under VB .NET VB6 was interpreter based language while VB.NET is a compiled language The greatest change in VB6 and VB.NET is of runtime environment. VB6 used the VB-Runtime while VB .NET adheres to the Common Language Specification (CLS) for language interoperability which is also shared with C#. VB 4, 5, and 6 were backward compatible VB .NET is not backward compatible VB6 was not a type-safe language while VB.NET is a type safe language. There is no variant type in VB.NET and no type conversions happen automatically in VB.NET 5/21/2015 10
  • 11. A lot of code (like user interface code) in VB6 was hidden from developer. In VB.NET no code is hidden from developer and you can access and control each part of your application and it now has C-like Syntax VB .NET is now has object oriented programming features Arrays is 0 based in VB .NET. i.e when you declare an array in vb6 "Dim Items(5) As String" you would get an array with 6 elements but in VB.NET it would be 5 items now. 5/21/2015 11
  • 12. VB2008.NET VB6 Difference Short Integer 16 Bit Integer Long 32 Bit Long 64 Bit Object Variant Variant Dropped use the new Object Data Type Decimal String String No Fixed Length String in Vb.NET Currency Use Decimal or long in vb2008 5/21/2015 12 No More Variant, Currency Data Types in VB.NET, you also get the new data types in Visual Basic. NET called Object other changes are as follow.
  • 13. VB6 was only considered good for desktop windows application. In VB.NET you can develop web applications, distributed applications, create .NET windows and web controls and components, write windows and web services. In VB.NET, you can also use reflections to read the meta- data of types and using reflection emit you can also generate code to define and invoke types at runtime. VB.NET uses .NET framework class library along with specialized VB library (System.VisualBasic) as a standard library. As a result, the standard library for VB.NET is much enhanced and useful compared to VB6 standard library 5/21/2015 13
  • 14. VB.NET is platform independent because of .Net framework. Programs written in VB.NET can run on any platform where .Net framework is present. The platform include both hardware and software (operating system) platforms. VB.NET also supports language interoperability with various .NET compliant languages. This means that you can use and enhance the code written in other .NET compliant languages. Similarly the code written in VB.NET can also be used and enhanced by other .NET compliant languages. Although VB6 also provided this functionality through COM but it was limited and difficult to use and manage. 5/21/2015 14
  • 15. VB.Net makes it easier because of the presence of Intermediate Language (IL) and Common Language Specification (CLS) of the .NET architecture. VB6 uses COM (Component Object Model) as component architecture. VB.NET uses assemblies as its component architecture. The Assemblies architecture has removed a lot of problems with COM including DLL-Hell and versioning problem. Components created in VB6 (COM) need to make and update registry entries. VB.NET does not require any registry entry making the deployment easier. 5/21/2015 15
  • 16. Since VB.NET is a natural evolution of VB - and indeed its replacement . 5/21/2015 16
  • 17. Conclusion As we can see, quite a bit is involved in the three “simple” changes that the teams made to create Visual Basic .NET. Despite all of these changes, you should find the development environment, compiler, and language familiar. The skills that you have acquired using Visual Basic 6 are not lost when you upgrade to Visual Basic .NET. The way you create, run, and debug a Visual Basic .NET application is nearly identical to the process you are already familiar with. After all, Visual Basic is still Visual Basic. The spirit is alive and well in Visual Basic .NET. 5/21/2015 17

Editor's Notes

  1. Inheritance VB.Net supports inheritance by allowing you to define classes that serve as the basis for derived classes. Derived classes inherit and can extend on the properties and methods of the base class. They can also override inherited methods with new implementations of the base class. All classes created with VB.Net are inheritable by default. Because the forms you design are really classes, you can use inheritance to define new forms based on existing ones. For details, see Inheritance in Visual Basic. Exception Handling VB.Net supports structured exception handling, using an enhanced version of the Try...Catch...Finally syntax supported by other languages such as C++. Structured exception handling combines a modern control structure (similar to Select Case or While) with exceptions, protected blocks of code, and filters. Structured exception handling makes it easy to create and maintain programs with robust, comprehensive error handlers. For details, see Introduction to Exception Handling. Overloading Overloading is the ability to define properties, methods, procedures, or operators that have the same name but use different data types. You can use overloaded procedures to provide as many implementations as necessary to handle different kinds of data, while giving the appearance of a single, versatile procedure. For details, see Overloaded Properties and Methods. Overriding Properties and Methods The Overrides keyword allows derived objects to override characteristics inherited from parent objects. Overridden members have the same arguments as the members inherited from the base class, but they have different implementations. A member's new implementation can call the original implementation in the parent class by preceding the member name with MyBase. For details, seeOverriding Properties and Methods. Constructors and Destructors Constructors are procedures that control initialization of new instances of a class. Conversely, destructors are methods that free system resources when a class leaves scope or is set to Nothing. VB.Net supports constructors and destructors using the Sub New and Sub Finalize procedures. For details, see Object Lifetime: How Objects Are Created and Destroyed. Data Types VB.Net introduces three new data types. The Char data type is an unsigned 16-bit quantity used to store Unicode characters. It is equivalent to the .NET Framework System.Char data type. The Short data type, a signed 16-bit integer, was named Integer in earlier versions of Visual Basic. The Decimal data type is a 96-bit signed integer scaled by a variable power of 10. In earlier versions of Visual Basic, it was available only within a Variant. In addition, Visual Basic now supports unsigned integer data types (UShort, UInteger, and ULong), as well as the signed type SByte. For details, see Data Types in Visual Basic. Interfaces Interfaces describe the properties and methods of classes, but unlike classes, interfaces do not provide implementations. Use the Interface statement to declare interfaces; use the Implements statement to write code that puts the items described in the interface into practice. For details, seeInterfaces in Visual Basic. Delegates Delegates are objects that can call the methods of objects on your behalf and are sometimes described as type-safe, object-oriented function pointers. You can use delegates to let procedures specify an event handler method that runs when an event occurs. You can also use delegates with multithreaded applications. For details, see Delegates and the AddressOf Operator. Shared Members Shared members are properties, procedures, and fields that are shared by all instances of a class. Shared data members are useful when multiple objects need to use information that is common to all objects. You can use shared class methods without first creating an object from a class. For details, see Shared Members in Visual Basic. References You can use References to use objects defined in other assemblies. In VB.Net, references point to assemblies instead of type libraries. For details, see References and the Imports Statement. Namespaces Namespaces prevent naming conflicts by organizing classes, interfaces, and methods into hierarchies. For details, see Namespaces in Visual Basic. Assemblies Assemblies replace and extend the capabilities of type libraries by describing all the required files for a particular component or application. An assembly can contain one or more namespaces. For details, see Assemblies. Attributes You can use attributes to provide additional information about program elements. For example, you can use an attribute to specify which methods in a class should be exposed when the class is used as a XML Web service. For details, see Attributes in Visual Basic. Multithreading You can use VB.Net to write applications that can perform multiple tasks independently. A task that can hold up other tasks can execute on a separate thread, a process known as multithreading. By causing complicated tasks to run on threads that are separate from your user interface, multithreading makes your applications more responsive to user input. For details, see Multithreaded Applications.