You are on page 1of 19

INTRODUCTION TO

VISUAL BASIC DOT NET


(VB.NET)
What is Computer Programming?
 Computer programming: creating a sequence of
instructions to enable the computer to do something.
Programming Phases
 Define a task/problem =SPECIFICATION
 Plan your solution =DESIGN
 Find suitable algorithm to solve it
 Find suitable data structures to use

 Write code =IMPLEMENTATION


 Fix program error (bugs) =TESTING & DEBUGGING

 Make your customer happy =DEPLOYMENT


Vb.Net Overview

 VisualBasic .NET (VB.NET) is an object-oriented


computer programming language developed by
Microsoft and implemented on the .NET
Framework.
 Although it is an evolution of classic Visual Basic
language, it is not backwards-compatible with VB6,
and any code written in the old version does not
compile under VB.NET.
Why VB.Net is widely used as a
professional language?
 Modern, general purpose.
 Object oriented.
 Component oriented.
 Easy to learn.
 Structured language.
 It produces efficient programs.
 It can be compiled on a variety of computer platforms.
 Part of .Net Framework.
What is .NET Framework?
The .Net framework is a revolutionary platform that helps
you to write the following types of applications:
 Windows applications
 Web applications
 Web services
The framework has been designed in such a way that it can
be used from any of the following languages: Visual Basic,
C#, C++, Jscript, and COBOL, etc.
History
 .NET Framework (pronounced dot net) is a software
framework developed by Microsoft that runs primarily
on Microsoft Windows.
 Microsoft began developing .NET Framework in the late
1990s, originally under the name of Next Generation
Windows Services (NGWS). By late 2000, the first beta
versions of .NET 1.0 were released.
Components of the .Net framework
CLR – The Heart of .NET Framework
 Common Language Runtime (CLR)
Managed execution environment
 Executes .NET applications

 Controls the execution process


Framework Class Library (FCL)
 FCL provides user interface, data access, database
connectivity, cryptography, web application development,
numeric algorithms, and network communications.
Visual Studio.NET
 Visual Studio – Integrated Development Environment
(IDE)
 Development tool that helps us to:
 Writecode
 Design user interface
 Compile code
 Execute / test / debug applications
How a VB Application is Compiled and Run
Visual Studio .NET .NET Framework

Integrated Common
Visual Basic
Development Language
compiler
Environment Runtime

1 2 3

Solution Assembly
Project
Intermediate Language (IL)

Source files

Class references
Event-Driven Computer Programs with a
Graphical User Interface
 Most Visual Basic.Net programs are event-driven programs that
communicate with the user through a graphical user interface (GUI)
 A GUI usually consists of a window, containing a variety of objects
(icons, buttons, images)
 An event means the user has initiated an action (a mouse click or
entering text) that causes the program to perform the type of
processing called for by the user’s action.
 Clicking a button triggers an event, resulting in the program
performing the process called by the click.
Event-Driven Computer Programs with a
Graphical User Interface
 Examples of events:
 The user enters the account number in the Account Number
box
 The user clicks the Display Account Balance button
 The user clicks the Reset Window button to clear the text
boxes and prepare the user interface for the next
account number

You might also like