ITEC-103 PRG2 - iNTRO

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 16

COLLEGE OF COMPUTER

STUDIES
PREPARED BY: P. FERNANDEZ, A.K. RACELIS
Computer
Programming 2
Visual Basic .NET
Visual Basic .NET (VB.NET) is a multi-paradigm, object-
oriented programming language, implemented on the
.NET Framework.
Microsoft launched VB.NET in 2002 as the successor to
its original Visual Basic language. Along with Visual C#,
it is one of the two main languages targeting the .NET
framework.
Microsoft's integrated development environment (IDE)
for developing in Visual Basic .NET language is Visual
Studio.
Visual Basic .NET
Most of Visual Studio editions are commercial; the only
exceptions are Visual Studio Express and Visual Studio
Community, which are freeware.
In addition, .NET Framework SDK includes a freeware
command-line compiler called vbc.exe. Mono also
includes a command-line VB.NET compiler.
Version History
Succeeding the classic Visual Basic version 6.0, the first version
of Visual Basic .NET debuted in 2002. As of 2014, seven
versions of Visual Basic .NET are released.
2002 (VB 7.0)
The first version, Visual Basic .NET, relies on .NET
Framework 1.0. The most important feature is managed
code, which contrasts with the classic Visual Basic.
Version History
2003 (VB 7.1)
Visual Basic .NET 2003 was released with .NET Framework
1.1. New features included support for the .NET Compact
Framework and a better VB upgrade wizard.
Improvements were also made to the performance and
reliability of .NET IDE (particularly the background
compiler) and runtime.
In addition, Visual Basic .NET 2003 was available in the
Visual Studio.NET Academic Edition, distributed to a
certain number of scholars[weasel words] from each
country without cost.
Version History
2005 (VB 8.0)
After Visual Basic .NET 2003, Microsoft dropped ".NET" from
the name of the product, calling the next version Visual Basic
2005.
For this release, Microsoft added many features intended to
reinforce Visual Basic .NET's focus as a rapid application
development platform and further differentiate it from C#.,
including:
Edit and Continue feature
Design-time expression evaluation
Version History
A pseudo-namespacecalled "My", which provides:
Easy access to certain areas of the .NET Framework that
otherwise require significant code to access like using
My.Form2.Text = " MainForm "
rather than
System.WindowsApplication1.Forms.Form2.text = "
MainForm "
Dynamically generated classes (e.g.My.Forms)
Improved VB-to-VB.NET converter
Version History
2008 (VB 9.0)[edit]
Visual Basic 9.0 was released along with .NET Framework
3.5 on 19 November 2007.
For this release, Microsoft added many features, including:

A true conditional operator, "If(condition as


boolean, true part, false part)", to replace
the "IIf" function.
XML Literals
Anonymous types
Type Inference
Support for LINQ
Extension methods
Lambda expressions
Version History
2010 (VB 10.0)
In April 2010, Microsoft released Visual Basic 2010.
Microsoft had planned to use Dynamic Language Runtime
(DLR) for that release but shifted to a co-evolution
strategy between Visual Basic and sister language C# to
bring both languages into closer parity with one another.
The Visual Basic compiler was improved to infer line
continuation in a set of common contexts, in many cases
removing the need for the "_" line continuation character.
Also, existing support of inline Functions was
complemented with support for inline Subs as well as
multi-line versions of both Sub and Function lambdas.
Version History
2012 (VB 11.0)
Visual Basic 2012 was released along .NET Framework 4.5.
Major features introduced in this version include:
Asynchronous programming with "async" and "await"
statements
Iterators
Call hierarchy
Caller information
"Global" keyword in "namespace" statements
Version History
2015 (VB 14.0)
Visual Basic 2015 (code named VB "14.0") has been
released with Visual Studio 2015.
Language features include a new "?." operator to perform
inline null checks, and a new string interpolation feature is
included to format strings inline.
Cross-platform and open-source development
The creation of open-source tools for VB.NET development
has been slow compared to C#, although the Mono
development platform provides an implementation of
VB.NET-specific libraries and a VB.NET 8.0 compatible
compiler written in VB.NET, as well as standard framework
libraries such as Windows Forms GUI library.
SharpDevelop and MonoDevelop are open-source alternative
IDEs.
Syntax
VB.NET uses statements to specify actions. The most common
statement is an expression statement, consisting of an expression
to be evaluated, on a single line.
As part of that evaluation, functions or subroutines may be called
and variables may be assigned new values. To modify the normal
sequential execution of statements, VB.NET provides several
control-flow statements identified by reserved keywords.
Structured programming is supported by several constructs
including two conditional execution constructs (If Then Else
End If and Select Case ... Case ... End Select ) and three iterative
execution (loop) constructs (Do Loop, For To, and For Each) .
Example
Comparative examples

You might also like