This document provides an overview of Visual Basic .NET, including an introduction to the .NET framework, Visual Studio integrated development environment, VB.NET language basics like variables, data types, operators, arrays, and enumerations. It concludes with details on creating a simple "Hello World" console application in VB.NET.
3. Module Overview
What is .Net?
VB in .net Framework
Getting started with VB
Visual Studio IDE tour
First Program – Hello world!
Compilation & Execution
Variables and Operators
Data Types
Arrays & Enums
Summary
4. .Net Framework
Base Class Library
Common Language Specification
Common Language Runtime
ADO.NET: Data and XML
VB C++ C#
Visual
Studio.NET
ASP.NET: Web Services
And Web Forms
JScript …
Windows
forms
5. Common Language Runtime
Base Class Library
Common Language Specification
Common Language Runtime
ADO.NET: Data and XML
VB C++ C#
Visual
Studio.NET
ASP.NET: Web Services
and Web Forms
JScript …
Windows
Forms
6. Language Interoperability
Common Classes for all Languages
Common Types for all Languages
Runtime Controls Compilation to Machine Code
Assemblies
Application Domains
Common Language Runtime
7. The .NET Framework
Simplified development
XCOPY deployment
Scalability
Rich Web clients and safe Web hosting
Potentially multi-platform
Multiple languages (cross inheritance)
Increases productivity
Robust and secure execution environmentwq
9. The .NET Framework
.NET Framework Services
Base Class Library
Common Language Specification
Common Language Runtime
ADO.NET: Data and XML
VB C++ C#
Visual
Studio.NET
ASP.NET: Web Services
and Web Forms
JScript …
Windows
Forms
10. ASP.NET
Separation of code and presentation
Compiled
Web Forms
Web Services
Windows® Forms
Framework for building rich clients
ADO.NET, Evolution of ADO
New objects (e.g., DataSets)
XML support throughout
The .NET Framework
.NET Framework Services
11. VB.net – What it is?
A language to create .Net components
An evolution of classic Visual Basic
Create application, services, and reusable libraries
Visual basic command line compiler
Transforms VB code to MSIL
Produces an assembly (.dll, .exe)
12. Visual Studio - IDE
An Integrated Development Environment
Edit VB, C#, JS, Css, Html files
Compile and Execute programs
Debugging tools
Testing evironment
13. Visual Studio – Solution Explorer
Will contain at least one project
Contains one or more source code files
Each project produces an assembly
Projects organized under a solution
Manage multiple applications or libraries
14. Data Types
Name Description
Int32 (or int) 32 bit integer
Int64 (or long) 64 bit integer
Boolean (or bool) true or false
Float (or float) Single precision floating point
Double (or double) Double precision floating point
Decimal (or decimal) Fixed precision (financial)
DateTime An instant in time (to 100 ns)
String (or string) Text (as Unicode characters)
15. Variables
Variables hold a value
Use the Dim keyword to create a variable
Variables always have a type
Can optionally assign a value at declaration
16. Type Inference
Visual Basic can infer type of variable
from their value
Must assign at value at declaration
for inference to work
17. Statements
A statement is a line of code
Statements end at the end of a line
Long statements can be divided using
the underscore character
18. Operators
Specify an operation to perform on one or more variables
Mathematical operators ( + , - , * , /, , Mod )
Relational operators ( < , > , <= , >= )
Equality operators (=, <>)
Conditional operators (And, Or)
Assignment operators (=, +=, -=, *=, /=)
String concatenation (&)
19. Arrays
A variable that can hold multiple values of the same type
Index of first item is 0
Can have multi-dimensional arrays
20. Enumerations
An Enum creates a type
A set of named constants
A numeric value is associated with each constant
21. First Program – Hello World
Create a console app – vb module
Inside Sub Main()
Console.WriteLine(“Hello World”)
Lets see in action - Demo
22. Summary
What is .Net?
VB in .net Framework
Getting started with VB
Visual Studio IDE tour
First Program – Hello world!
Compilation & Execution
Variables and Operators
Data Types
Arrays & Enums
Summary