Visual Basic.NET A look into the.NET Programming Model Bryan Jenks Integrated Ideas ©2005.

Slides:



Advertisements
Similar presentations
ADO vs ADO.NET ADOADO.NET Client/server coupledDisconnected collection of data from data server Uses RECORDSET object (contains one table) Uses DATASET.
Advertisements

Visual Basic.NET Comprehensive Concepts and Techniques What’s new in VB.NET adapted from a presentation on Introduction to Visual Basic.NET by Jeff Quasney.
History of.Net Introduced by Microsoft Earlier technology was VC++ and VB VC++ comes with so many library and VB was so easy to use and not flexible to.
Windows Programming 1 Part 1 dbg --- Getting Acquainted with Visual Studio.NET and C#
.NET Framework Overview Pingping Ma Nov 16 th, 2006.
Henrico Dolfing Business Segment Partners. Océ Document Technologies GmbH2 June, NET Framework Version 3.0.
Tiger Computer Services Ltd Using Interfaces in.NET Simplifying access to multiple DB providers in.NET Liam
ISYS 512 Business Application Design and Development with.Net David Chao.
Overview of the.NET Framework. What is the.NET Framework A new computing platform designed to simplify application development A consistent object-oriented.
Introduction to the C# Programming Language for the VB Programmer.
Advanced Object-Oriented Programming Features
ISYS 512 Business Application Design and Development with.Net David Chao.
ASP.NET Programming with C# and SQL Server First Edition
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
Platforms and tools for Web Services and Mobile Applications Introduction to C# Bent Thomsen Aalborg University 3rd and 4th of June 2004.
Object-Oriented Programming in Visual Basic.NET. Overview Defining Classes Creating and Destroying Objects Inheritance Interfaces Working with Classes.
Visual Basic.NET A look into the.NET Programming Model Bryan Jenks Integrated Ideas ©2005.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
To define a class in Visual Basic.NET, you can follow this general procedure: 1. Add a class to the project. 2. Provide an appropriate file name for.
Object Based Programming. Summary Slide  Instantiating An Object  Encapsulation  Inheritance  Polymorphism –Overriding Methods –Overloading vs. Overriding.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
A Free sample background from © 2001 By Default!Slide 1.NET Overview BY: Pinkesh Desai.
Overview of Microsoft.Net and Vb.Net ITSE 2349 Spring 2002 Material from Microsoft.Net an Overview for ACC faculty by Stuart Laughton and Introduction.
CSCI 3327 Visual Basic Chapter 1: Introduction to Visual Basic
Introduction to .Net Framework
ISYS 512 Business Application Design and Development with.Net David Chao.
VS.NET Syllabus By Peter Huang.
ASP.NET The.NET Framework. The.NET Framework is Microsoft’s distributed run-time environment for creating, deploying, and using applications over the.
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
Architecture of.NET Framework .NET Framework ٭ Microsoft.NET (pronounced “dot net”) is a software component that runs on the Windows operating.
Meir Botner David Ben-David. Project Goal Build a messenger that allows a customer to communicate with a service provider for a fee.
Native Support for Web Services  Native Web services access  Enables cross platform interoperability  Reduces middle-tier dependency (no IIS)  Simplifies.
 Internet providing backbone for applications  Use of several web sites and devices to provide one complete solution  Software as services  Quick software.
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
ASP.NET  ASP.NET is a web development platform, which provides a programming model, a comprehensive software infrastructure and various services required.
Module 7: Object-Oriented Programming in Visual Basic .NET
C# Programming Fundamentals of Object-Oriented Programming Fundamentals of Object-Oriented Programming Introducing Microsoft.NET Introducing Microsoft.NET.
Overview of Data Access MacDonald Ch. 15 MIS 324 Professor Sandvig.
ISYS 573 Special Topic – VB.Net David Chao. The History of VB Early 1960s:BASIC-Beginner’s All-Purpose Symbolic Instruction Code –Teaching –Simple syntax,
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
.NET Framework Danish Sami UG Lead.NetFoundry
Introduction to VB.Net. What is.NET? A brand of Microsoft technologies A platform for creating distributed Web applications A combination of new and updated.
Rajiv and Shipra Introduction to.NET (asp.net,c#,vb)
tom perkins1 XML Web Services -.NET FRAMEWORK – Part 1 CHAPTER 1.1 – 1.3.
1 Visual Studio.NET.NET as a Teaching Tool John D. Haney John M. Lovely Northern Arizona University College of Business Administration.
From DNA to.NET Design Path. Objectives Sketch up a typical Win DNA Application Sketch up the.NET version Compare Design and Implementation Advantages.
ISYS 350 Business Application Development David Chao.
Module 1: Getting Started. Introduction to.NET and the.NET Framework Exploring Visual Studio.NET Creating a Windows Application Project Overview Use Visual.
Module 3: Using Microsoft.NET- Based Languages. Overview Overview of the.NET-Based Languages Comparison of the.NET-Based Languages.
JDS – VB.NET Skill Session Fall 2004 Presented by YUHAO LIN.
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
PRIOR TO WEB SERVICES THE OTHER TECHNOLOGIES ARE:.
Visual Basic.NET Preview David Stevenson Consulting Software Engineer, ABB
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
Presented by Vishy Grandhi.  Architecture (Week 1) ◦ Development Environments ◦ Model driven architecture ◦ Licensing and configuration  AOT (Week 2)
Getting Started with.NET Getting Started with.NET/Lesson 1/Slide 1 of 31 Objectives In this lesson, you will learn to: *Identify the components of the.NET.
C# and.NET. .NET Architecture  Compiling and running code that targets.NET  Advantages of Microsoft Intermediate Language (MSIL)  Value and Reference.
ISYS 512 Business Application Design and Development with.Net David Chao.
INTRODUCTION CHAPTER #1 Visual Basic.NET. VB.Net General features It is an object oriented language  In the past VB had objects but focus was not placed.
Presented by Ted Higgins, SQL Server DBA An Introduction to Object – Oriented Programming.
Integrating and Extending Workflow 8 AA301 Carl Sykes Ed Heaney.
D OTNET ONLINE TRAINING. DOTNET Online Training Course Content : Introduction to.Net Online Training NET FUNDAMENTALS Why Dot Net? The Dot Net initiative.
Introduction to the Microsoft.NET Framework Chris Wastchak Student Ambassador to Microsoft.
Introducing the Microsoft® .NET Framework
CS360 Windows Programming
Module 1: Getting Started
Object-Oriented Programming: Classes and Objects
Chapter 10 ADO.
Module 10: Implementing Managed Code in the Database
A look into the .NET Programming Model
Presentation transcript:

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 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 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 Un-managed Code Runtime Engine (JIT) Intermediate Language Compiler Managed Code Bryan Jenks - Integrated Ideas ©2005

.NET Infrastructure.NET Framework CLR Portable Executable VBC#VJ# Application ManifestMSIL 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 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 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 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 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 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 Objects Abstraction Encapsulation Polymorphism Inheritance Bryan Jenks - Integrated Ideas ©2005

Object Components The Object Data Members Properties Behavior Methods Events The Object Data Members Properties Behavior Methods Events Bryan Jenks - Integrated Ideas ©2005

Objects vs. Structures Objects Members Properties Events Methods Instantiation Interfaces Inheritance 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] 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 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 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 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) 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] 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 Wikipedia - Object-oriented programming Designing VISUAL BASIC.NET Applications David Vitter – CORIOLIS MSDN Online Wikipedia - Object-oriented programming