SlideShare a Scribd company logo
1 of 48
Visual Basic .NET
A look into the .NET Programming Model
Bryan Jenks
Integrated Ideas ©2005
VB.NET Programming and the
.NET Architecture
Planning and Designing for .NET
Object Oriented Programming Concepts
Advanced Programming Concepts
More Advanced Programming Concepts
Data Access Using ADO.NET
Testing and Debugging in .NET
The .NET Framework
Bryan Jenks - Integrated Ideas ©2005
VB.NET Programming and the
.NET Architecture
Planning and Designing for .NET
Programming Language Hierarchy
The .NET Infrastructure
.NET Project Types
Designing for .NET
Application Design Issues
Bryan Jenks - Integrated Ideas ©2005
Language Hierarchy
Machine Code
Assembly
Compiler
Runtime Engine (JIT)
Intermediate Language
Un-managed Code
Managed Code
Compiler
Bryan Jenks - Integrated Ideas ©2005
.NET Infrastructure
.NET Framework
CLR
Portable Executable
VB C# VJ#
Application Manifest MSIL
Bryan Jenks - Integrated Ideas ©2005
ASP.NET Architecture
Bryan Jenks - Integrated Ideas ©2005
.NET Projects
Windows Application
Web Application
Class Library
Windows Service
Web Service
Control Libraries
Setup and Deployment
Bryan Jenks - Integrated Ideas ©2005
Designing for .NET
Standalone Architecture
Single PE
Three-Tier Architecture
Presentation Tier
Business Logic Tier
Data Tier
N-Tier Architecture
Web services
Mobile Applications
Bryan Jenks - Integrated Ideas ©2005
Design Issues
Code Reuse
Scalability
Maintainability
Performance
Security
Durability
Integration and Interoperability
Bryan Jenks - Integrated Ideas ©2005
VB.NET Programming and the
.NET Architecture
Planning and Designing for .NET
Object Oriented Programming Concepts
Advanced Programming Concepts
More Advanced Programming Concepts
Data Access Using ADO.NET
Testing and Debugging in .NET
The .NET Framework
Bryan Jenks - Integrated Ideas ©2005
VB.NET Programming and the
.NET Architecture
Object Oriented Programming Concepts
Object Oriented Programming
Objects vs. Structures
Methods, Events, and Properties
Overloading
Interfaces and Inheritance
Bryan Jenks - Integrated Ideas ©2005
Object Oriented Programming
Objects
Abstraction
Encapsulation
Polymorphism
Inheritance
Bryan Jenks - Integrated Ideas ©2005
Object Components
The Object
Data
Members
Properties
Behavior
Methods
Events
Bryan Jenks - Integrated Ideas ©2005
Objects vs. Structures
Objects
 Members
 Properties
 Events
 Methods
 Instantiation
 Interfaces
 Inheritance
Structures
 Members
 Properties
 Methods
Bryan Jenks - Integrated Ideas ©2005
Objects vs. Structures
Public Structure Person
Public Appendages As Integer
Public Male As Boolean
Public EyeColor As Color
End Structure
Public Class Person
Public Appendages As Integer
Public Male As Boolean
Public EyeColor As Color
End Class
Bryan Jenks - Integrated Ideas ©2005
Methods
Public Class Person
Private Sub setBaby()
' Baby is born
End Sub
Private Function getBaby() As Person
' Baby is returned
Return New Person
End Function
End Class
Bryan Jenks - Integrated Ideas ©2005
Events
Public Class Person
Public Event Birth(ByVal Birtday As Date)
Private Sub getBaby()
' Baby is born
RaiseEvent Birth(Now)
End Sub
End Class
Bryan Jenks - Integrated Ideas ©2005
Properties
Public Class Person
Private myAppendages As Integer
Public Property Appendages() As Integer
Get
Return myAppendages
End Get
Set(ByVal value As Integer)
myAppendages = value
End Set
End Property
End Class
Bryan Jenks - Integrated Ideas ©2005
Overloading
Public Class Person
Private Sub Feed(Food as Integer)
' Person is fed food
End Sub
Private Sub Feed(Crap as Double)
' Person is fed crap
End Sub
End Class
Bryan Jenks - Integrated Ideas ©2005
Interfaces and Inheritance
Interfaces
Enforces Design
Ensures Compatibility
Inheritance
Provides Coupling
Enables Code Reuse
[demonstration]
Bryan Jenks - Integrated Ideas ©2005
VB.NET Programming and the
.NET Architecture
Planning and Designing for .NET
Object Oriented Programming Concepts
Advanced Programming Concepts
More Advanced Programming Concepts
Data Access Using ADO.NET
Testing and Debugging in .NET
The .NET Framework
Bryan Jenks - Integrated Ideas ©2005
VB.NET Programming and the
.NET Architecture
Advanced Programming Concepts
Variables
Scope
Arrays
Collections
Object Passing and Optional Parameters
Inheritance Control
Overrides
Shadows
Bryan Jenks - Integrated Ideas ©2005
Variable Scope
Dim
Protected (Module Level Access)
Private (Base Class Level Access)
Public (Project Level)
Friend (Assembly Level)
Static
Shared
Bryan Jenks - Integrated Ideas ©2005
Arrays and Collections
Array
 Size
 Item(Index)
Collection
 Size
 Item(Index)
 Item(Key)
 Add(Item)
 Remove(Item)
 Contains(Item)
Bryan Jenks - Integrated Ideas ©2005
[Array and collection demonstration]
Object Passing and Parameters
Object Passing
ByRef
ByVal
Optional Parameters
Keyword: Optional
= [Default Value]
Bryan Jenks - Integrated Ideas ©2005
Inheritance Control
Overrides
Replaces inherited member with
permission
Shadows
Masks inherited member
Bryan Jenks - Integrated Ideas ©2005
[Inheritance Control demonstration]
VB.NET Programming and the
.NET Architecture
Planning and Designing for .NET
Object Oriented Programming Concepts
Advanced Programming Concepts
More Advanced Programming Concepts
Data Access Using ADO.NET
Testing and Debugging in .NET
The .NET Framework
Bryan Jenks - Integrated Ideas ©2005
VB.NET Programming and the
.NET Architecture
More Advanced Programming Concepts
Threading
Delegates
Exception Handling
Types of Errors
Unstructured Handling
Structured Handling
Raising and Throwing Exceptions
Bryan Jenks - Integrated Ideas ©2005
Threading
Application Threading Concepts
The application thread
System.Threading Namespace
Thread.Kill, Sleep, Suspend
Threading Issues
Dangling Threads
Synchronization
Thread Safety
Bryan Jenks - Integrated Ideas ©2005
Delegates
Process Flow Delegation
The Delegate Keyword
Delegate Declaration
The AddressOf keyword
Multicasting
System.Delegate.Combine
Bryan Jenks - Integrated Ideas ©2005
Exception Handling
Types of Errors
Syntax Errors
Logic Errors
Runtime Errors
Bryan Jenks - Integrated Ideas ©2005
Unstructured Exception Handling
 On Error Goto [location]
 On Error Resume Next
Benefits
 Easy to read
 Simple to implement
Drawbacks
 Difficult to troubleshoot
 Poorly structured
Bryan Jenks - Integrated Ideas ©2005
Structured Exception
Handling
 The Err Object
 Try, End Try
 Catch
 Finally
Benefits
 Structured
 Reliable
Drawbacks
 Complicated
 Requires Planning
Bryan Jenks - Integrated Ideas ©2005
Structured Exception
Handling
Throwing Exceptions
The Exception Class
Throw [Exception]
Raising Errors
The error handling heirarchy
Err.Raise
Bryan Jenks - Integrated Ideas ©2005
VB.NET Programming and the
.NET Architecture
Planning and Designing for .NET
Object Oriented Programming Concepts
Advanced Programming Concepts
More Advanced Programming Concepts
Data Access Using ADO.NET
Testing and Debugging in .NET
The .NET Framework
Bryan Jenks - Integrated Ideas ©2005
VB.NET Programming and the
.NET Architecture
Data Access Using ADO.NET
Database Concepts
Data Connections
Data Adaptors
Datasets
Data Readers
Bryan Jenks - Integrated Ideas ©2005
Database Concepts
Flat Databases
Text Files
DBF, DB4, DB5
COBOL
Relational Databases
MS Access
SQL Server
Oracle
Bryan Jenks - Integrated Ideas ©2005
Database Concepts
Database Components
Tables
Relations
Constraints
Users
Stored Procedures
User Defined Types
Catalogs
Bryan Jenks - Integrated Ideas ©2005
Data Access Components
Data Adaptors
Data Connections
Datasets
Data Readers
Bryan Jenks - Integrated Ideas ©2005
Data Connections
Data Connection Featues
Software Channel to Database
Propagates Authentication Criteria
Isolates Data Flow
Data Connection Types
OleDb
ODBC
SQLClient
Bryan Jenks - Integrated Ideas ©2005
Data Adaptors
Functions of the Data Adaptor
Understanding the Database
Maintaining Query Objects
Maintaining Query Parameters
Retrieving and Updating Data
Bryan Jenks - Integrated Ideas ©2005
Datasets
Dataset Components
DataTables
DataColumns
DataRows
Relations
Constraints
XML Interpolation
Bryan Jenks - Integrated Ideas ©2005
DataReaders
DataReader Features
Operates in Connected Architecture
Live Data Stream
Low memory overhead
Bryan Jenks - Integrated Ideas ©2005
VB.NET Programming and the
.NET Architecture
Planning and Designing for .NET
Object Oriented Programming Concepts
Advanced Programming Concepts
More Advanced Programming Concepts
Data Access Using ADO.NET
Testing and Debugging in .NET
The .NET Framework
Bryan Jenks - Integrated Ideas ©2005
VB.NET Programming and the
.NET Architecture
Testing and Debugging in .NET
Breakpoints
Stepping Through Code
Step Into
Step Over
Step Out
Debugging Windows
Locals, Autos, and Watch
Call Stack and Threads
Immediate/Command
Bryan Jenks - Integrated Ideas ©2005
VB.NET Programming and the
.NET Architecture
Planning and Designing for .NET
Object Oriented Programming Concepts
Advanced Programming Concepts
More Advanced Programming Concepts
Data Access Using ADO.NET
Testing and Debugging in .NET
The .NET Framework
Bryan Jenks - Integrated Ideas ©2005
VB.NET Programming and the
.NET Architecture
The .NET Framework
Microsoft
System
IO
Text
Windows
Collections
Net
Security
Threading
Data
Web
Bryan Jenks - Integrated Ideas ©2005
References
 Designing VISUAL BASIC .NET Applications
David Vitter – CORIOLIS
 MSDN Online
http://msdn.microsoft.com
 Wikipedia - Object-oriented programming
http://en.wikipedia.org/wiki/Object-oriented_programming

More Related Content

Similar to Visual basic 1.1 by ms. vidhi sood

RichardChauvetShortResume2015
RichardChauvetShortResume2015RichardChauvetShortResume2015
RichardChauvetShortResume2015
Richard Chauvet
 
2 Training on webwroks for Word
2 Training on webwroks for Word2 Training on webwroks for Word
2 Training on webwroks for Word
sumeettechno
 
2005 - .NET SummerCamp: Web developmentwith IIS & ASP.NET webservices
2005 - .NET SummerCamp: Web developmentwith IIS & ASP.NET webservices2005 - .NET SummerCamp: Web developmentwith IIS & ASP.NET webservices
2005 - .NET SummerCamp: Web developmentwith IIS & ASP.NET webservices
Daniel Fisher
 
What's New for Data?
What's New for Data?What's New for Data?
What's New for Data?
ukdpe
 
Linqtosql 090629035715 Phpapp01
Linqtosql 090629035715 Phpapp01Linqtosql 090629035715 Phpapp01
Linqtosql 090629035715 Phpapp01
google
 
ADO.NET Entity Framework
ADO.NET Entity FrameworkADO.NET Entity Framework
ADO.NET Entity Framework
Doncho Minkov
 
Dev-In-Town:Linq To Sql by Chan Ming Man
Dev-In-Town:Linq To Sql by Chan Ming ManDev-In-Town:Linq To Sql by Chan Ming Man
Dev-In-Town:Linq To Sql by Chan Ming Man
Quek Lilian
 

Similar to Visual basic 1.1 by ms. vidhi sood (20)

1111
11111111
1111
 
Building data centric applications for web, desktop and mobile with Entity Fr...
Building data centric applications for web, desktop and mobile with Entity Fr...Building data centric applications for web, desktop and mobile with Entity Fr...
Building data centric applications for web, desktop and mobile with Entity Fr...
 
Entity Framework Overview
Entity Framework OverviewEntity Framework Overview
Entity Framework Overview
 
RichardChauvetShortResume2015
RichardChauvetShortResume2015RichardChauvetShortResume2015
RichardChauvetShortResume2015
 
c# training | c# training videos | c# object oriented programming | c# course
c# training | c# training videos | c# object oriented programming | c# coursec# training | c# training videos | c# object oriented programming | c# course
c# training | c# training videos | c# object oriented programming | c# course
 
Siebel Resume Arquitecture
Siebel Resume ArquitectureSiebel Resume Arquitecture
Siebel Resume Arquitecture
 
2 Training on webwroks for Word
2 Training on webwroks for Word2 Training on webwroks for Word
2 Training on webwroks for Word
 
Entity Framework Overview
Entity Framework OverviewEntity Framework Overview
Entity Framework Overview
 
TheTricky Bits of Deployment Automation
TheTricky Bits of Deployment Automation TheTricky Bits of Deployment Automation
TheTricky Bits of Deployment Automation
 
Entity Framework Overview
Entity Framework OverviewEntity Framework Overview
Entity Framework Overview
 
Entity Framework and Domain Driven Design
Entity Framework and Domain Driven DesignEntity Framework and Domain Driven Design
Entity Framework and Domain Driven Design
 
2005 - .NET SummerCamp: Web developmentwith IIS & ASP.NET webservices
2005 - .NET SummerCamp: Web developmentwith IIS & ASP.NET webservices2005 - .NET SummerCamp: Web developmentwith IIS & ASP.NET webservices
2005 - .NET SummerCamp: Web developmentwith IIS & ASP.NET webservices
 
Share Point Web Parts 101
Share Point Web Parts 101Share Point Web Parts 101
Share Point Web Parts 101
 
What's New for Data?
What's New for Data?What's New for Data?
What's New for Data?
 
LF_APIStrat17_API Workflow Engine (AWEsome)
LF_APIStrat17_API Workflow Engine (AWEsome)LF_APIStrat17_API Workflow Engine (AWEsome)
LF_APIStrat17_API Workflow Engine (AWEsome)
 
Linqtosql 090629035715 Phpapp01
Linqtosql 090629035715 Phpapp01Linqtosql 090629035715 Phpapp01
Linqtosql 090629035715 Phpapp01
 
ADO.NET Entity Framework
ADO.NET Entity FrameworkADO.NET Entity Framework
ADO.NET Entity Framework
 
Dev-In-Town:Linq To Sql by Chan Ming Man
Dev-In-Town:Linq To Sql by Chan Ming ManDev-In-Town:Linq To Sql by Chan Ming Man
Dev-In-Town:Linq To Sql by Chan Ming Man
 
Using SAP Crystal Reports as a Linked (Open) Data Front-End via ODBC
Using SAP Crystal Reports as a Linked (Open) Data Front-End via ODBCUsing SAP Crystal Reports as a Linked (Open) Data Front-End via ODBC
Using SAP Crystal Reports as a Linked (Open) Data Front-End via ODBC
 
Creating a Data Driven UI Framework
Creating a Data Driven UI FrameworkCreating a Data Driven UI Framework
Creating a Data Driven UI Framework
 

More from cpjcollege

More from cpjcollege (20)

Tax Law (LLB-403)
Tax Law (LLB-403)Tax Law (LLB-403)
Tax Law (LLB-403)
 
Law and Emerging Technology (LLB -405)
 Law and Emerging Technology (LLB -405) Law and Emerging Technology (LLB -405)
Law and Emerging Technology (LLB -405)
 
Law of Crimes-I ( LLB -205)
 Law of Crimes-I  ( LLB -205)  Law of Crimes-I  ( LLB -205)
Law of Crimes-I ( LLB -205)
 
Socio-Legal Dimensions of Gender (LLB-507 & 509 )
Socio-Legal Dimensions of Gender (LLB-507 & 509 )Socio-Legal Dimensions of Gender (LLB-507 & 509 )
Socio-Legal Dimensions of Gender (LLB-507 & 509 )
 
Family Law-I ( LLB -201)
Family Law-I  ( LLB -201) Family Law-I  ( LLB -201)
Family Law-I ( LLB -201)
 
Alternative Dispute Resolution (ADR) [LLB -309]
Alternative Dispute Resolution (ADR) [LLB -309] Alternative Dispute Resolution (ADR) [LLB -309]
Alternative Dispute Resolution (ADR) [LLB -309]
 
Law of Evidence (LLB-303)
Law of Evidence  (LLB-303) Law of Evidence  (LLB-303)
Law of Evidence (LLB-303)
 
Environmental Studies and Environmental Laws (: LLB -301)
Environmental Studies and Environmental Laws (: LLB -301)Environmental Studies and Environmental Laws (: LLB -301)
Environmental Studies and Environmental Laws (: LLB -301)
 
Code of Civil Procedure (LLB -307)
 Code of Civil Procedure (LLB -307) Code of Civil Procedure (LLB -307)
Code of Civil Procedure (LLB -307)
 
Constitutional Law-I (LLB -203)
 Constitutional Law-I (LLB -203) Constitutional Law-I (LLB -203)
Constitutional Law-I (LLB -203)
 
Women and Law [LLB 409 (c)]
Women and Law [LLB 409 (c)]Women and Law [LLB 409 (c)]
Women and Law [LLB 409 (c)]
 
Corporate Law ( LLB- 305)
Corporate Law ( LLB- 305)Corporate Law ( LLB- 305)
Corporate Law ( LLB- 305)
 
Human Rights Law ( LLB -407)
 Human Rights Law ( LLB -407) Human Rights Law ( LLB -407)
Human Rights Law ( LLB -407)
 
Labour Law-I (LLB 401)
 Labour Law-I (LLB 401) Labour Law-I (LLB 401)
Labour Law-I (LLB 401)
 
Legal Ethics and Court Craft (LLB 501)
 Legal Ethics and Court Craft (LLB 501) Legal Ethics and Court Craft (LLB 501)
Legal Ethics and Court Craft (LLB 501)
 
Political Science-II (BALLB- 209)
Political Science-II (BALLB- 209)Political Science-II (BALLB- 209)
Political Science-II (BALLB- 209)
 
Health Care Law ( LLB 507 & LLB 509 )
Health Care Law ( LLB 507 & LLB 509 )Health Care Law ( LLB 507 & LLB 509 )
Health Care Law ( LLB 507 & LLB 509 )
 
Land and Real Estate Laws (LLB-505)
Land and Real Estate Laws (LLB-505)Land and Real Estate Laws (LLB-505)
Land and Real Estate Laws (LLB-505)
 
Business Environment and Ethical Practices (BBA LLB 213 )
Business Environment and Ethical Practices (BBA LLB 213 )Business Environment and Ethical Practices (BBA LLB 213 )
Business Environment and Ethical Practices (BBA LLB 213 )
 
HUMAN RESOURCE MANAGEMENT (BBA LLB215 )
HUMAN RESOURCE MANAGEMENT (BBA LLB215 )HUMAN RESOURCE MANAGEMENT (BBA LLB215 )
HUMAN RESOURCE MANAGEMENT (BBA LLB215 )
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 

Visual basic 1.1 by ms. vidhi sood

  • 1. Visual Basic .NET A look into the .NET Programming Model Bryan Jenks Integrated Ideas ©2005
  • 2. VB.NET Programming and the .NET Architecture Planning and Designing for .NET Object Oriented Programming Concepts Advanced Programming Concepts More Advanced Programming Concepts Data Access Using ADO.NET Testing and Debugging in .NET The .NET Framework Bryan Jenks - Integrated Ideas ©2005
  • 3. VB.NET Programming and the .NET Architecture Planning and Designing for .NET Programming Language Hierarchy The .NET Infrastructure .NET Project Types Designing for .NET Application Design Issues Bryan Jenks - Integrated Ideas ©2005
  • 4. Language Hierarchy Machine Code Assembly Compiler Runtime Engine (JIT) Intermediate Language Un-managed Code Managed Code Compiler Bryan Jenks - Integrated Ideas ©2005
  • 5. .NET Infrastructure .NET Framework CLR Portable Executable VB C# VJ# Application Manifest MSIL Bryan Jenks - Integrated Ideas ©2005
  • 6. ASP.NET Architecture Bryan Jenks - Integrated Ideas ©2005
  • 7. .NET Projects Windows Application Web Application Class Library Windows Service Web Service Control Libraries Setup and Deployment Bryan Jenks - Integrated Ideas ©2005
  • 8. Designing for .NET Standalone Architecture Single PE Three-Tier Architecture Presentation Tier Business Logic Tier Data Tier N-Tier Architecture Web services Mobile Applications Bryan Jenks - Integrated Ideas ©2005
  • 10. VB.NET Programming and the .NET Architecture Planning and Designing for .NET Object Oriented Programming Concepts Advanced Programming Concepts More Advanced Programming Concepts Data Access Using ADO.NET Testing and Debugging in .NET The .NET Framework Bryan Jenks - Integrated Ideas ©2005
  • 11. VB.NET Programming and the .NET Architecture Object Oriented Programming Concepts Object Oriented Programming Objects vs. Structures Methods, Events, and Properties Overloading Interfaces and Inheritance Bryan Jenks - Integrated Ideas ©2005
  • 14. Objects vs. Structures Objects  Members  Properties  Events  Methods  Instantiation  Interfaces  Inheritance Structures  Members  Properties  Methods Bryan Jenks - Integrated Ideas ©2005
  • 15. Objects vs. Structures Public Structure Person Public Appendages As Integer Public Male As Boolean Public EyeColor As Color End Structure Public Class Person Public Appendages As Integer Public Male As Boolean Public EyeColor As Color End Class Bryan Jenks - Integrated Ideas ©2005
  • 16. Methods Public Class Person Private Sub setBaby() ' Baby is born End Sub Private Function getBaby() As Person ' Baby is returned Return New Person End Function End Class Bryan Jenks - Integrated Ideas ©2005
  • 17. Events Public Class Person Public Event Birth(ByVal Birtday As Date) Private Sub getBaby() ' Baby is born RaiseEvent Birth(Now) End Sub End Class Bryan Jenks - Integrated Ideas ©2005
  • 18. Properties Public Class Person Private myAppendages As Integer Public Property Appendages() As Integer Get Return myAppendages End Get Set(ByVal value As Integer) myAppendages = value End Set End Property End Class Bryan Jenks - Integrated Ideas ©2005
  • 19. Overloading Public Class Person Private Sub Feed(Food as Integer) ' Person is fed food End Sub Private Sub Feed(Crap as Double) ' Person is fed crap End Sub End Class Bryan Jenks - Integrated Ideas ©2005
  • 20. Interfaces and Inheritance Interfaces Enforces Design Ensures Compatibility Inheritance Provides Coupling Enables Code Reuse [demonstration] Bryan Jenks - Integrated Ideas ©2005
  • 21. VB.NET Programming and the .NET Architecture Planning and Designing for .NET Object Oriented Programming Concepts Advanced Programming Concepts More Advanced Programming Concepts Data Access Using ADO.NET Testing and Debugging in .NET The .NET Framework Bryan Jenks - Integrated Ideas ©2005
  • 22. VB.NET Programming and the .NET Architecture Advanced Programming Concepts Variables Scope Arrays Collections Object Passing and Optional Parameters Inheritance Control Overrides Shadows Bryan Jenks - Integrated Ideas ©2005
  • 23. Variable Scope Dim Protected (Module Level Access) Private (Base Class Level Access) Public (Project Level) Friend (Assembly Level) Static Shared Bryan Jenks - Integrated Ideas ©2005
  • 24. Arrays and Collections Array  Size  Item(Index) Collection  Size  Item(Index)  Item(Key)  Add(Item)  Remove(Item)  Contains(Item) Bryan Jenks - Integrated Ideas ©2005 [Array and collection demonstration]
  • 25. Object Passing and Parameters Object Passing ByRef ByVal Optional Parameters Keyword: Optional = [Default Value] Bryan Jenks - Integrated Ideas ©2005
  • 26. Inheritance Control Overrides Replaces inherited member with permission Shadows Masks inherited member Bryan Jenks - Integrated Ideas ©2005 [Inheritance Control demonstration]
  • 27. VB.NET Programming and the .NET Architecture Planning and Designing for .NET Object Oriented Programming Concepts Advanced Programming Concepts More Advanced Programming Concepts Data Access Using ADO.NET Testing and Debugging in .NET The .NET Framework Bryan Jenks - Integrated Ideas ©2005
  • 28. VB.NET Programming and the .NET Architecture More Advanced Programming Concepts Threading Delegates Exception Handling Types of Errors Unstructured Handling Structured Handling Raising and Throwing Exceptions Bryan Jenks - Integrated Ideas ©2005
  • 29. Threading Application Threading Concepts The application thread System.Threading Namespace Thread.Kill, Sleep, Suspend Threading Issues Dangling Threads Synchronization Thread Safety Bryan Jenks - Integrated Ideas ©2005
  • 30. Delegates Process Flow Delegation The Delegate Keyword Delegate Declaration The AddressOf keyword Multicasting System.Delegate.Combine Bryan Jenks - Integrated Ideas ©2005
  • 31. Exception Handling Types of Errors Syntax Errors Logic Errors Runtime Errors Bryan Jenks - Integrated Ideas ©2005
  • 32. Unstructured Exception Handling  On Error Goto [location]  On Error Resume Next Benefits  Easy to read  Simple to implement Drawbacks  Difficult to troubleshoot  Poorly structured Bryan Jenks - Integrated Ideas ©2005
  • 33. Structured Exception Handling  The Err Object  Try, End Try  Catch  Finally Benefits  Structured  Reliable Drawbacks  Complicated  Requires Planning Bryan Jenks - Integrated Ideas ©2005
  • 34. Structured Exception Handling Throwing Exceptions The Exception Class Throw [Exception] Raising Errors The error handling heirarchy Err.Raise Bryan Jenks - Integrated Ideas ©2005
  • 35. VB.NET Programming and the .NET Architecture Planning and Designing for .NET Object Oriented Programming Concepts Advanced Programming Concepts More Advanced Programming Concepts Data Access Using ADO.NET Testing and Debugging in .NET The .NET Framework Bryan Jenks - Integrated Ideas ©2005
  • 36. VB.NET Programming and the .NET Architecture Data Access Using ADO.NET Database Concepts Data Connections Data Adaptors Datasets Data Readers Bryan Jenks - Integrated Ideas ©2005
  • 37. Database Concepts Flat Databases Text Files DBF, DB4, DB5 COBOL Relational Databases MS Access SQL Server Oracle Bryan Jenks - Integrated Ideas ©2005
  • 38. Database Concepts Database Components Tables Relations Constraints Users Stored Procedures User Defined Types Catalogs Bryan Jenks - Integrated Ideas ©2005
  • 39. Data Access Components Data Adaptors Data Connections Datasets Data Readers Bryan Jenks - Integrated Ideas ©2005
  • 40. Data Connections Data Connection Featues Software Channel to Database Propagates Authentication Criteria Isolates Data Flow Data Connection Types OleDb ODBC SQLClient Bryan Jenks - Integrated Ideas ©2005
  • 41. Data Adaptors Functions of the Data Adaptor Understanding the Database Maintaining Query Objects Maintaining Query Parameters Retrieving and Updating Data Bryan Jenks - Integrated Ideas ©2005
  • 43. DataReaders DataReader Features Operates in Connected Architecture Live Data Stream Low memory overhead Bryan Jenks - Integrated Ideas ©2005
  • 44. VB.NET Programming and the .NET Architecture Planning and Designing for .NET Object Oriented Programming Concepts Advanced Programming Concepts More Advanced Programming Concepts Data Access Using ADO.NET Testing and Debugging in .NET The .NET Framework Bryan Jenks - Integrated Ideas ©2005
  • 45. VB.NET Programming and the .NET Architecture Testing and Debugging in .NET Breakpoints Stepping Through Code Step Into Step Over Step Out Debugging Windows Locals, Autos, and Watch Call Stack and Threads Immediate/Command Bryan Jenks - Integrated Ideas ©2005
  • 46. VB.NET Programming and the .NET Architecture Planning and Designing for .NET Object Oriented Programming Concepts Advanced Programming Concepts More Advanced Programming Concepts Data Access Using ADO.NET Testing and Debugging in .NET The .NET Framework Bryan Jenks - Integrated Ideas ©2005
  • 47. VB.NET Programming and the .NET Architecture The .NET Framework Microsoft System IO Text Windows Collections Net Security Threading Data Web Bryan Jenks - Integrated Ideas ©2005
  • 48. References  Designing VISUAL BASIC .NET Applications David Vitter – CORIOLIS  MSDN Online http://msdn.microsoft.com  Wikipedia - Object-oriented programming http://en.wikipedia.org/wiki/Object-oriented_programming

Editor's Notes

  1. There are five requirements to OO languages. Objects – provide data encapsulation, coupling and cohesion Modular Structured Abstraction – facilitates parameterization (making something a function of something else) Code Hiding Encapsulation Information Hiding Cohesion Polymorphism Multiple Access Methods Multiple Response Actions Inheritance - facilitates polymorphism and encapsulation Organization Code-reuse