SlideShare a Scribd company logo
VB .NET
Topics
• Sub routines and Functions
• Constructor and Destructor
• Windows Application
• Collections
• File Handling
• Exception Handling
• Data base connectivity
• Introduction to VB .Net
• Creating VB .Net Project in VS
2005
• Data types and Operators in VB
.Net
• String Functions
• Conditions (If Else, Select Case)
• Loops (Do While, Do Until, For)
• Classes, Objects
Introduction
• VB .Net is developed by Microsoft
• It is Visual Basic for .Net Platform
• Ancestor of VB .Net is BASIC
• In 1991, Microsoft added visual components to
BASIC and created Visual Basic
• After the development of .Net, VB was added
with more set of controls and components and
thus evolved a new language VB .Net
Features of VB .Net
• Object Oriented Language
• We can drag controls from the tool bar and
drop them on the form and write code for the
controls
• Runs on the CLR (Common Language
Runtime)
• Release of unused objects taken care by the
CLR
Data types and Operators in VB .Net
• Data types
Integer, string, single, double, boolean, char
• Operators
Arithmetic (+,-,*,/,,Mod)
Logical (Or, And)
Relational (=,<>,<,<=,>,>=)
String Functions
• Len(str) – Length of the string str
• Str.Replace(“old”,”New”) – Replaces Old with
New in the string Str
• Str.Insert(pos,”string”) – Inserts the string
specified at the position pos in the string Str
• Trim(str) – Removes the leading and trailing
spaces in the string str
Programming Concepts
If Else
Select Case
For Loop
Do While Loop
Do Until Loop
Class
Object
Subroutines and Functions
Continued……
Constructor
Destructor
Collections
Array List
Sorted List
Hash Table
Stack
Queue
Exception Handling
• Exception is Run time error
• It is not known at the compile time
• Examples of exceptions
Divide by zero
Accessing non existing portion of
memory
Memory overflow due to looping
• In VB .Net, exception is handled via Try
Catch Mechanism
Try Catch Finally
Try
Suspicious code that may throw an exception to be
written here
Catch ex As Exception
What to be done if exception occurs to be written
here
Finally
Optional portion which will be executed
irrespective of the happening of exception to be
written here. Can contain code for releasing
unnecessary space
File Handling
• In the System Namespace, the IO class has several
subclasses for file handling, text processing etc
• Classes File, Directory are used for creating, deleting
file or folders and also has methods to play with them
• Class FileStream is used for creating and
manipulating files
• Open the file using FileStream class. This makes use
of FileMode and FileAccess enumeration to specify how
to open a file (for creating a new file or opening an
existing file) and whether the file is read only or write
only or read write
• Associate a reader for the stream
• Read the file and do the manipulations
Operations on a file
• Create
• Move
• Copy
• Replace
• Read
• Write
• Delete
We also provide classroom and online training classes
For More Details
www.asit.amcsquare.com
Wise Machines India Pvt Ltd
#360, Sri Sai Padma Arcade,
Varthur Main Road,
Ramagondanahalli,
Whitefiled ,Bangalore – 560066.
We also having Branches in Hyderabad & Chennai

More Related Content

PPT
Uklug2012 yellow and blue stream
PPT
Introduction to java programming
PPTX
Use notes objects in memory and other useful java tips for xpages development
PPTX
Microsoft Azure DocumentDB - Global Azure Bootcamp 2016
PPT
Client server
PPTX
Bccon use notes objects in memory and other useful
PPTX
Progressive Web Apps Nedir? JavaScript Service Workers Nedir?
PPTX
.Net Fundamentals
Uklug2012 yellow and blue stream
Introduction to java programming
Use notes objects in memory and other useful java tips for xpages development
Microsoft Azure DocumentDB - Global Azure Bootcamp 2016
Client server
Bccon use notes objects in memory and other useful
Progressive Web Apps Nedir? JavaScript Service Workers Nedir?
.Net Fundamentals

What's hot (20)

PPTX
2018 12-kube con-ballerinacon
PPTX
Working with NodeJS
PPT
Introduction to oops
PPTX
Rust baksia2014
PPTX
Validator
PPTX
From Ontology to Wiki: Automating Generation of Semantic Wiki Interfaces from...
PPTX
Java and the JVM
PDF
Modern js in practice
PPTX
From ontology to wiki
PPT
Internet services, protocols, applications, packets and frames
PPTX
C# basics...
PPTX
Week 1 - Intro to the Internet
PPTX
Introduction to Elixir
PPT
David buksbaum a-briefintroductiontocsharp
PPTX
Intro to java programming
PPTX
Revision
ODP
Libre office intro
PPTX
Test content
2018 12-kube con-ballerinacon
Working with NodeJS
Introduction to oops
Rust baksia2014
Validator
From Ontology to Wiki: Automating Generation of Semantic Wiki Interfaces from...
Java and the JVM
Modern js in practice
From ontology to wiki
Internet services, protocols, applications, packets and frames
C# basics...
Week 1 - Intro to the Internet
Introduction to Elixir
David buksbaum a-briefintroductiontocsharp
Intro to java programming
Revision
Libre office intro
Test content
Ad

Similar to Learn VB.NET at ASIT (20)

PPTX
Presentation1.pptx
PPTX
.Net programming with C#
PPTX
.Net introduction
PDF
Embedded Systems: Lecture 14: Introduction to GNU Toolchain (Binary Utilities)
PPTX
Object Oriented Programming I
PDF
Asp.Net 3 5 Part 1
PDF
Geting-started with BoxLang Led By Raymon Camden.pdf
PDF
Lecture - The .Net Technology and Framework
PPT
Setting up your development environment
PDF
Introduction to Visual basic IDE presentation.pdf
PPTX
CS4443 - Modern Programming Language - I Lecture (1)
PPTX
what is .net
PPTX
06.1 .Net memory management
PPTX
1 java programming- introduction
PPTX
Introduction to C#.pptx for all BSIT students
PPT
Introduction_to_NET.ppt
PPT
java ppt..ppt for bca student computer application
PPT
ASP.NET Session 3
PPTX
Web programming and services
PDF
Beyond Domino Designer
Presentation1.pptx
.Net programming with C#
.Net introduction
Embedded Systems: Lecture 14: Introduction to GNU Toolchain (Binary Utilities)
Object Oriented Programming I
Asp.Net 3 5 Part 1
Geting-started with BoxLang Led By Raymon Camden.pdf
Lecture - The .Net Technology and Framework
Setting up your development environment
Introduction to Visual basic IDE presentation.pdf
CS4443 - Modern Programming Language - I Lecture (1)
what is .net
06.1 .Net memory management
1 java programming- introduction
Introduction to C#.pptx for all BSIT students
Introduction_to_NET.ppt
java ppt..ppt for bca student computer application
ASP.NET Session 3
Web programming and services
Beyond Domino Designer
Ad

More from ASIT (20)

PPTX
Asit education student review
PPTX
ASIT EDUCATION STUDENT REVIEWS
PPTX
Asit Education
PPTX
Asit Education Student Reviews
PPTX
Asit education Student review
PPTX
ASIT EDUCATION REVIEW
PPTX
Asit Never Cheats Unemployes
PPTX
Latest News on Amc Square Asit
PPTX
Asit amc never cheats students
PPTX
News on AMC Square ASIT
PPTX
News on Asit Amc
PPTX
Time Management
PPTX
learn Ruby at ASIT
PPTX
introduction to Mongodb
PPTX
introduction to hadoop
PPTX
ASIT REVIEWS
PPTX
ASIT REVIEWS
PPTX
Learn REST API at ASIT
PPTX
Learn C LANGUAGE at ASIT
PPTX
Learn Advanced JAVA at ASIT
Asit education student review
ASIT EDUCATION STUDENT REVIEWS
Asit Education
Asit Education Student Reviews
Asit education Student review
ASIT EDUCATION REVIEW
Asit Never Cheats Unemployes
Latest News on Amc Square Asit
Asit amc never cheats students
News on AMC Square ASIT
News on Asit Amc
Time Management
learn Ruby at ASIT
introduction to Mongodb
introduction to hadoop
ASIT REVIEWS
ASIT REVIEWS
Learn REST API at ASIT
Learn C LANGUAGE at ASIT
Learn Advanced JAVA at ASIT

Recently uploaded (20)

PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Cell Structure & Organelles in detailed.
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
Complications of Minimal Access Surgery at WLH
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Lesson notes of climatology university.
PPTX
Institutional Correction lecture only . . .
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
RMMM.pdf make it easy to upload and study
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Final Presentation General Medicine 03-08-2024.pptx
O7-L3 Supply Chain Operations - ICLT Program
O5-L3 Freight Transport Ops (International) V1.pdf
Computing-Curriculum for Schools in Ghana
Cell Structure & Organelles in detailed.
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Complications of Minimal Access Surgery at WLH
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Final Presentation General Medicine 03-08-2024.pptx
Microbial diseases, their pathogenesis and prophylaxis
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Lesson notes of climatology university.
Institutional Correction lecture only . . .
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Abdominal Access Techniques with Prof. Dr. R K Mishra
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
RMMM.pdf make it easy to upload and study

Learn VB.NET at ASIT

  • 2. Topics • Sub routines and Functions • Constructor and Destructor • Windows Application • Collections • File Handling • Exception Handling • Data base connectivity • Introduction to VB .Net • Creating VB .Net Project in VS 2005 • Data types and Operators in VB .Net • String Functions • Conditions (If Else, Select Case) • Loops (Do While, Do Until, For) • Classes, Objects
  • 3. Introduction • VB .Net is developed by Microsoft • It is Visual Basic for .Net Platform • Ancestor of VB .Net is BASIC • In 1991, Microsoft added visual components to BASIC and created Visual Basic • After the development of .Net, VB was added with more set of controls and components and thus evolved a new language VB .Net
  • 4. Features of VB .Net • Object Oriented Language • We can drag controls from the tool bar and drop them on the form and write code for the controls • Runs on the CLR (Common Language Runtime) • Release of unused objects taken care by the CLR
  • 5. Data types and Operators in VB .Net • Data types Integer, string, single, double, boolean, char • Operators Arithmetic (+,-,*,/,,Mod) Logical (Or, And) Relational (=,<>,<,<=,>,>=)
  • 6. String Functions • Len(str) – Length of the string str • Str.Replace(“old”,”New”) – Replaces Old with New in the string Str • Str.Insert(pos,”string”) – Inserts the string specified at the position pos in the string Str • Trim(str) – Removes the leading and trailing spaces in the string str
  • 7. Programming Concepts If Else Select Case For Loop Do While Loop Do Until Loop Class Object Subroutines and Functions Continued……
  • 9. Exception Handling • Exception is Run time error • It is not known at the compile time • Examples of exceptions Divide by zero Accessing non existing portion of memory Memory overflow due to looping • In VB .Net, exception is handled via Try Catch Mechanism
  • 10. Try Catch Finally Try Suspicious code that may throw an exception to be written here Catch ex As Exception What to be done if exception occurs to be written here Finally Optional portion which will be executed irrespective of the happening of exception to be written here. Can contain code for releasing unnecessary space
  • 11. File Handling • In the System Namespace, the IO class has several subclasses for file handling, text processing etc • Classes File, Directory are used for creating, deleting file or folders and also has methods to play with them • Class FileStream is used for creating and manipulating files • Open the file using FileStream class. This makes use of FileMode and FileAccess enumeration to specify how to open a file (for creating a new file or opening an existing file) and whether the file is read only or write only or read write • Associate a reader for the stream • Read the file and do the manipulations
  • 12. Operations on a file • Create • Move • Copy • Replace • Read • Write • Delete
  • 13. We also provide classroom and online training classes For More Details www.asit.amcsquare.com Wise Machines India Pvt Ltd #360, Sri Sai Padma Arcade, Varthur Main Road, Ramagondanahalli, Whitefiled ,Bangalore – 560066. We also having Branches in Hyderabad & Chennai