SlideShare a Scribd company logo
1 of 15
Visual Basic Dot Net
(VB.NET)
Hudson Nandere Lubinga
Email: nanderehudson@gmail.com, TEL: 0753625255
Introduction to VB.NET
5/4/2017 Hudson Nandere Lubinga 2
Overview
• Visual Basic .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.
• Like all other .NET languages, VB.NET has complete support for object-oriented
concepts. Everything in VB.NET is an object, including all of the primitive types
(Short, Integer, Long, String, Boolean, etc.) and user-defined types, events, and
even assemblies. All objects inherits from the base class Object.
• VB.NET is implemented by Microsoft's .NET framework. Therefore, it has full
access to all the libraries in the .Net Framework. It's also possible to run VB.NET
programs on Mono, the open-source alternative to .NET, not only under Windows,
but even Linux or Mac OSX.
5/4/2017 Hudson Nandere Lubinga 3
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.
5/4/2017 Hudson Nandere Lubinga 4
The .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 .Net framework applications are multi-platform applications. 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.
• All these languages can access the framework as well as communicate with each other.
• The .Net framework consists of an enormous library of codes used by the client languages
like VB.Net. These languages use object-oriented methodology.
5/4/2017 Hudson Nandere Lubinga 5
Components of the .Net framework
• Common Language Runtime (CLR)
• The .Net Framework Class Library
• Common Language Specification
• Common Type System
• Metadata and Assemblies
• Windows Forms
• ASP.Net and ASP.Net AJAX
• ADO.Net
• Windows Workflow Foundation (WF)
• Windows Presentation Foundation
• Windows Communication Foundation (WCF)
• LINQ
Qn:
Briefly Explain the jobs
performed by each of these
components.
5/4/2017 Hudson Nandere Lubinga 6
Visual Studio.NET
 A platform that allows the development and deployment of desktop
and web applications
 Allows user choice of many .NET languages
 May program in One of them
 May create different parts of application in different languages
▪ Visual Basic
▪ C# (C Sharp)
▪ C++
▪ J++
▪ Etc.
5/4/2017 Hudson Nandere Lubinga 7
What is Visual Basic.Net
 4th Generation Programming Environment / Development Language
 Based on BASIC language
 Beginners All-Purpose Symbolic Instructional Code
 Most widely used tool for developing Windows Applications
 Graphical User Interface (GUI)
 Menus, Buttons, Icons to help the user
 Full Object-Oriented Programming Language
5/4/2017 Hudson Nandere Lubinga 8
How a VB Application is Compiled and Run
Solution
.NET FrameworkVisual Studio .NET
Project
Common
Language
Runtime
Integrated
Development
Environment
Source files
Visual Basic
compiler
1 2 3
Assembly
Intermediate Language (IL)
Class references
5/4/2017 Hudson Nandere Lubinga 9
Project and Solution Concepts
• User creates a new project in Visual Studio
• A solution and a folder are created at the same time with the same name as
the project
• The project belongs to the solution
• Multiple projects can be included in a solution
• Solution
• Contains several folders that define an application’s structure
• Solution files have a file suffix of .sln
• Project: contains files for a part of the solution
• Project file is used to create an executable application
• A project file has a suffix of .vbproj
• Every project has a type (Console, Windows, etc.)
• Every project has an entry point: A Sub procedure named Main or a Form
5/4/2017 Hudson Nandere Lubinga 10
Project and Solution Folders/Files
• Solution folder
• Solution file (.sln)
• Project folder
• Project file (.vbproj)
• Visual Basic source files (.vb)
• My Project folder: contains configuration information common to
all projects
• The file AssemblyInfo.vb contains assembly metadata
• The References folder contains references to other assemblies
• The bin folder contains the executable file produced as a result of
compiling the application
5/4/2017 Hudson Nandere Lubinga 11
• 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.
12
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
13
Event-Driven Computer Programs with a Graphical User Interface
Assignment
• Install Visual Studio 2008 and configure it for use.
5/4/2017 Hudson Nandere Lubinga 14
Lecture 1   introduction to vb.net

More Related Content

What's hot

Windows form application - C# Training
Windows form application - C# Training Windows form application - C# Training
Windows form application - C# Training Moutasm Tamimi
 
c#.Net Windows application
c#.Net Windows application c#.Net Windows application
c#.Net Windows application veera
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScriptAndres Baravalle
 
Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)Michelle Anne Meralpis
 
Presentation on Visual Studio
Presentation on Visual StudioPresentation on Visual Studio
Presentation on Visual StudioMuhammad Aqeel
 
Java Data Types
Java Data TypesJava Data Types
Java Data TypesSpotle.ai
 
Protection and Security in Operating Systems
Protection and Security in Operating SystemsProtection and Security in Operating Systems
Protection and Security in Operating Systemsvampugani
 
Asp.NET Validation controls
Asp.NET Validation controlsAsp.NET Validation controls
Asp.NET Validation controlsGuddu gupta
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java ProgrammingRavi Kant Sahu
 
Visual programming lecture
Visual programming lecture Visual programming lecture
Visual programming lecture AqsaHayat3
 
Class and Objects in Java
Class and Objects in JavaClass and Objects in Java
Class and Objects in JavaSpotle.ai
 
Introduction to .net framework
Introduction to .net frameworkIntroduction to .net framework
Introduction to .net frameworkArun Prasad
 
Basics of JAVA programming
Basics of JAVA programmingBasics of JAVA programming
Basics of JAVA programmingElizabeth Thomas
 

What's hot (20)

Windows form application - C# Training
Windows form application - C# Training Windows form application - C# Training
Windows form application - C# Training
 
c#.Net Windows application
c#.Net Windows application c#.Net Windows application
c#.Net Windows application
 
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET Framework
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
 
Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)
 
Java: GUI
Java: GUIJava: GUI
Java: GUI
 
Vb.net tutorial
Vb.net tutorialVb.net tutorial
Vb.net tutorial
 
Presentation on Visual Studio
Presentation on Visual StudioPresentation on Visual Studio
Presentation on Visual Studio
 
Introduction to c#
Introduction to c#Introduction to c#
Introduction to c#
 
Vb basics
Vb basicsVb basics
Vb basics
 
VB.net
VB.netVB.net
VB.net
 
Java Data Types
Java Data TypesJava Data Types
Java Data Types
 
Protection and Security in Operating Systems
Protection and Security in Operating SystemsProtection and Security in Operating Systems
Protection and Security in Operating Systems
 
Asp.NET Validation controls
Asp.NET Validation controlsAsp.NET Validation controls
Asp.NET Validation controls
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java Programming
 
Visual programming lecture
Visual programming lecture Visual programming lecture
Visual programming lecture
 
Class and Objects in Java
Class and Objects in JavaClass and Objects in Java
Class and Objects in Java
 
Introduction to .net framework
Introduction to .net frameworkIntroduction to .net framework
Introduction to .net framework
 
Vb.net class notes
Vb.net class notesVb.net class notes
Vb.net class notes
 
Basics of JAVA programming
Basics of JAVA programmingBasics of JAVA programming
Basics of JAVA programming
 

Similar to Lecture 1 introduction to vb.net

Introduction_to_NET.ppt
Introduction_to_NET.pptIntroduction_to_NET.ppt
Introduction_to_NET.pptDarwin Terraza
 
Learn the java basic programming with example and syntaxchapter1-part-b.pptx
Learn the java basic programming with example and syntaxchapter1-part-b.pptxLearn the java basic programming with example and syntaxchapter1-part-b.pptx
Learn the java basic programming with example and syntaxchapter1-part-b.pptxGaytriMate
 
.Net the begining
.Net the begining.Net the begining
.Net the beginingcncwebworld
 
Future of .NET - .NET on Non Windows Platforms
Future of .NET - .NET on Non Windows PlatformsFuture of .NET - .NET on Non Windows Platforms
Future of .NET - .NET on Non Windows PlatformsAniruddha Chakrabarti
 
Pengantar Pemrograman Visual II
Pengantar Pemrograman Visual IIPengantar Pemrograman Visual II
Pengantar Pemrograman Visual IIWahyu Primadi
 
Difference between .net and asp.net all you need to know
Difference between .net and asp.net  all you need to knowDifference between .net and asp.net  all you need to know
Difference between .net and asp.net all you need to knowsophiaaaddison
 
Advance C# Programming Part 1.pptx
Advance C# Programming Part 1.pptxAdvance C# Programming Part 1.pptx
Advance C# Programming Part 1.pptxpercivalfernandez3
 
Dot net interview_questions
Dot net interview_questionsDot net interview_questions
Dot net interview_questions9292929292
 
Advance C# Programming Part 1.pdf
Advance C# Programming Part 1.pdfAdvance C# Programming Part 1.pdf
Advance C# Programming Part 1.pdfpercivalfernandez2
 
.Net Technologies Lesson 1.pptx
.Net Technologies Lesson 1.pptx.Net Technologies Lesson 1.pptx
.Net Technologies Lesson 1.pptxEllenGracePorras
 
Computer and multimedia Week 1 Windows Architecture.pptx
Computer and multimedia Week 1 Windows Architecture.pptxComputer and multimedia Week 1 Windows Architecture.pptx
Computer and multimedia Week 1 Windows Architecture.pptxfatahozil
 
Introduction to .net
Introduction to .net Introduction to .net
Introduction to .net Jaya Kumari
 
DOT NET TRaining
DOT NET TRainingDOT NET TRaining
DOT NET TRainingsunil kumar
 
.Net framework
.Net framework.Net framework
.Net frameworkViv EK
 

Similar to Lecture 1 introduction to vb.net (20)

Lecture 10
Lecture 10Lecture 10
Lecture 10
 
Net framework
Net frameworkNet framework
Net framework
 
Introduction_to_NET.ppt
Introduction_to_NET.pptIntroduction_to_NET.ppt
Introduction_to_NET.ppt
 
Learn the java basic programming with example and syntaxchapter1-part-b.pptx
Learn the java basic programming with example and syntaxchapter1-part-b.pptxLearn the java basic programming with example and syntaxchapter1-part-b.pptx
Learn the java basic programming with example and syntaxchapter1-part-b.pptx
 
.Net the begining
.Net the begining.Net the begining
.Net the begining
 
Future of .NET - .NET on Non Windows Platforms
Future of .NET - .NET on Non Windows PlatformsFuture of .NET - .NET on Non Windows Platforms
Future of .NET - .NET on Non Windows Platforms
 
Pengantar Pemrograman Visual II
Pengantar Pemrograman Visual IIPengantar Pemrograman Visual II
Pengantar Pemrograman Visual II
 
Difference between .net and asp.net all you need to know
Difference between .net and asp.net  all you need to knowDifference between .net and asp.net  all you need to know
Difference between .net and asp.net all you need to know
 
Presentation1.pptx
Presentation1.pptxPresentation1.pptx
Presentation1.pptx
 
Advance C# Programming Part 1.pptx
Advance C# Programming Part 1.pptxAdvance C# Programming Part 1.pptx
Advance C# Programming Part 1.pptx
 
Dot net interview_questions
Dot net interview_questionsDot net interview_questions
Dot net interview_questions
 
Visual Studio 2012 introduction
Visual Studio  2012 introductionVisual Studio  2012 introduction
Visual Studio 2012 introduction
 
Manas
ManasManas
Manas
 
Advance C# Programming Part 1.pdf
Advance C# Programming Part 1.pdfAdvance C# Programming Part 1.pdf
Advance C# Programming Part 1.pdf
 
Session i
Session iSession i
Session i
 
.Net Technologies Lesson 1.pptx
.Net Technologies Lesson 1.pptx.Net Technologies Lesson 1.pptx
.Net Technologies Lesson 1.pptx
 
Computer and multimedia Week 1 Windows Architecture.pptx
Computer and multimedia Week 1 Windows Architecture.pptxComputer and multimedia Week 1 Windows Architecture.pptx
Computer and multimedia Week 1 Windows Architecture.pptx
 
Introduction to .net
Introduction to .net Introduction to .net
Introduction to .net
 
DOT NET TRaining
DOT NET TRainingDOT NET TRaining
DOT NET TRaining
 
.Net framework
.Net framework.Net framework
.Net framework
 

Recently uploaded

EduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIEduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIkoyaldeepu123
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage examplePragyanshuParadkar1
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Effects of rheological properties on mixing
Effects of rheological properties on mixingEffects of rheological properties on mixing
Effects of rheological properties on mixingviprabot1
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 

Recently uploaded (20)

EduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIEduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AI
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage example
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Effects of rheological properties on mixing
Effects of rheological properties on mixingEffects of rheological properties on mixing
Effects of rheological properties on mixing
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 

Lecture 1 introduction to vb.net

  • 1. Visual Basic Dot Net (VB.NET) Hudson Nandere Lubinga Email: nanderehudson@gmail.com, TEL: 0753625255
  • 2. Introduction to VB.NET 5/4/2017 Hudson Nandere Lubinga 2
  • 3. Overview • Visual Basic .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. • Like all other .NET languages, VB.NET has complete support for object-oriented concepts. Everything in VB.NET is an object, including all of the primitive types (Short, Integer, Long, String, Boolean, etc.) and user-defined types, events, and even assemblies. All objects inherits from the base class Object. • VB.NET is implemented by Microsoft's .NET framework. Therefore, it has full access to all the libraries in the .Net Framework. It's also possible to run VB.NET programs on Mono, the open-source alternative to .NET, not only under Windows, but even Linux or Mac OSX. 5/4/2017 Hudson Nandere Lubinga 3
  • 4. 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. 5/4/2017 Hudson Nandere Lubinga 4
  • 5. The .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 .Net framework applications are multi-platform applications. 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. • All these languages can access the framework as well as communicate with each other. • The .Net framework consists of an enormous library of codes used by the client languages like VB.Net. These languages use object-oriented methodology. 5/4/2017 Hudson Nandere Lubinga 5
  • 6. Components of the .Net framework • Common Language Runtime (CLR) • The .Net Framework Class Library • Common Language Specification • Common Type System • Metadata and Assemblies • Windows Forms • ASP.Net and ASP.Net AJAX • ADO.Net • Windows Workflow Foundation (WF) • Windows Presentation Foundation • Windows Communication Foundation (WCF) • LINQ Qn: Briefly Explain the jobs performed by each of these components. 5/4/2017 Hudson Nandere Lubinga 6
  • 7. Visual Studio.NET  A platform that allows the development and deployment of desktop and web applications  Allows user choice of many .NET languages  May program in One of them  May create different parts of application in different languages ▪ Visual Basic ▪ C# (C Sharp) ▪ C++ ▪ J++ ▪ Etc. 5/4/2017 Hudson Nandere Lubinga 7
  • 8. What is Visual Basic.Net  4th Generation Programming Environment / Development Language  Based on BASIC language  Beginners All-Purpose Symbolic Instructional Code  Most widely used tool for developing Windows Applications  Graphical User Interface (GUI)  Menus, Buttons, Icons to help the user  Full Object-Oriented Programming Language 5/4/2017 Hudson Nandere Lubinga 8
  • 9. How a VB Application is Compiled and Run Solution .NET FrameworkVisual Studio .NET Project Common Language Runtime Integrated Development Environment Source files Visual Basic compiler 1 2 3 Assembly Intermediate Language (IL) Class references 5/4/2017 Hudson Nandere Lubinga 9
  • 10. Project and Solution Concepts • User creates a new project in Visual Studio • A solution and a folder are created at the same time with the same name as the project • The project belongs to the solution • Multiple projects can be included in a solution • Solution • Contains several folders that define an application’s structure • Solution files have a file suffix of .sln • Project: contains files for a part of the solution • Project file is used to create an executable application • A project file has a suffix of .vbproj • Every project has a type (Console, Windows, etc.) • Every project has an entry point: A Sub procedure named Main or a Form 5/4/2017 Hudson Nandere Lubinga 10
  • 11. Project and Solution Folders/Files • Solution folder • Solution file (.sln) • Project folder • Project file (.vbproj) • Visual Basic source files (.vb) • My Project folder: contains configuration information common to all projects • The file AssemblyInfo.vb contains assembly metadata • The References folder contains references to other assemblies • The bin folder contains the executable file produced as a result of compiling the application 5/4/2017 Hudson Nandere Lubinga 11
  • 12. • 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. 12 Event-Driven Computer Programs with a Graphical User Interface
  • 13. • 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 13 Event-Driven Computer Programs with a Graphical User Interface
  • 14. Assignment • Install Visual Studio 2008 and configure it for use. 5/4/2017 Hudson Nandere Lubinga 14