Abdul Waseem.  Why VB.NET  What is new in VB.NET  Update to VB.NET?

Slides:



Advertisements
Similar presentations
Introduction to.Net By Sam Nasr May 5,
Advertisements

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 12 Introduction to ASP.NET.
JavaScript I. JavaScript is an object oriented programming language used to add interactivity to web pages. Different from Java, even though bears some.
Integrated Business Applications with Databases (D3) Jenny Pedler
More about Ruby Maciej Mensfeld Presented by: Maciej Mensfeld More about Ruby dev.mensfeld.pl github.com/mensfeld.
Procedural Programming in C# Chapters Objectives You will be able to: Describe the most important data types available in C#. Read numeric values.
Chapter 12 OOP: Creating Object- Oriented Programs Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
Visual Basic.NET A look into the.NET Programming Model Bryan Jenks Integrated Ideas ©2005.
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.
Introduction to VB.NET Fiona Du. Agenda Why VB.NET What is new in VB.NET Update to VB.NET? VB.NET Language Essential.
Introduction to the C# Programming Language for the VB Programmer.
George Blank University Lecturer. CS 602 Java and the Web Object Oriented Software Development Using Java Chapter 4.
Using Visual Basic 6.0 to Create Web-Based Database Applications
Introduction to the C# Programming Language for the VB Programmer.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
Object Oriented Programming using VC++. Introduction Program – Set of instruction written in a high level language High level language used for writing.
Java Course Outline Kumar Harshit, USW. Course Description Teaches students to program using the Java programming language with the help of the Netbeans.
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.
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.
1 Chapter One A First Program Using C#. 2 Objectives Learn about programming tasks Learn object-oriented programming concepts Learn about the C# programming.
A First Program Using C#
Object Oriented Programming CEN 221. Course Description Classes, objects, inheritance, polymorphism, graphical user interfaces, event handling, exception.
I NTRODUCTION TO VB.NET Kasun. A GENDA Why VB.NET What is new in VB.NET Update to VB.NET? VB.NET Language Essential.
Visual Basic: An Object Oriented Approach 12 – Creating and using ActiveX objects.
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
Microsoft Visual Basic 2008 CHAPTER 8 Using Procedures and Exception Handling.
Microsoft Visual Basic 2008 CHAPTER NINE Using Arrays and File Handling.
Using Visual Basic 6.0 to Create Web-Based Database Applications
Nilotpal Bhattacharya Partner Technical Consultant| Microsoft.
Microsoft Access Using Visual Basic Routines. Visual Basic Datatypes Boolean Byte Currency Date Double Integer Long Object Single String Variant Hyperlink.
Distributed Systems (236351) Tutorial 1 - Getting Started with Visual Studio C#.NET.
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.
Prepared by: Elsy Torres Shajida Berry Siobhan Westby.
C# EMILEE KING. HISTORY OF C# In the late 1990’s Microsoft recognized the need to be able to develop applications that can run on multiple operating system.
Applications Development
Chapter 6 OOP: Creating Object-Oriented Programs Programming In Visual Basic.NET.
MS Visual Basic 6 Walter Milner. VB 6 0 Introduction –background to VB, A hello World program 1 Core language 1 –Projects, data types, variables, forms,
1 Working with Data Structures Kashef Mughal. 2 Chapter 5  Please review on your own  A few terms .NET Framework - programming model  CLR (Common.
Variables & Function Calls. Overview u Variables  Programmer Defined & Intrinsic  Data Types  Calculation issues u Using Functions  The val() function.
Visual Basic.NET Preview David Stevenson Consulting Software Engineer, ABB
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
Presented by Vishy Grandhi.  Architecture (Week 1) ◦ Development Environments ◦ Model driven architecture ◦ Licensing and configuration  AOT (Week 2)
 In the java programming language, a keyword is one of 50 reserved words which have a predefined meaning in the language; because of this,
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.
Introduction to Programming Lecture 2 Msury Mahunnah, Department of Informatics, Tallinn University of Technology.
Session 1 C# Basics.
Rich Internet Applications 2. Core JavaScript. The importance of JavaScript Many choices open to the developer for server-side Can choose server technology.
2: Basics Basics Programming C# © 2003 DevelopMentor, Inc. 12/1/2003.
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.
Terms and Rules II Professor Evan Korth New York University (All rights reserved)
ILM Proprietary and Confidential -
C# Fundamentals An Introduction. Before we begin How to get started writing C# – Quick tour of the dev. Environment – The current C# version is 5.0 –
Features of.net Language independent Object oriented program Multi threading Exception handling Drag and drop Linq
VB.Net. Topics Introduction to VB.Net Creating VB.Net Project in VS 2005 Data types and Operators in VB.Net String Functions Conditions (If Else, Select.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 6 Looping and Multiple Forms.
 It is a pure oops language and a high level language.  It was developed at sun microsystems by James Gosling.
These materials where developed by Martin Schray
VISUAL BASIC 6.0 Designed by Mrinal Kanti Nath.
Introduction to Programming Lecture 2
A variable is a name for a value stored in memory.
Introduction to VB.NET Fiona Du.
CS360 Windows Programming
.NET and .NET Core 5.2 Type Operations Pan Wuming 2016.
VISUAL BASIC.
Introduction to VB.NET Fiona Du.
A look into the .NET Programming Model
Presentation transcript:

Abdul Waseem

 Why VB.NET  What is new in VB.NET  Update to VB.NET?

 The world of applications is changing:  The move to Web  The need for reusability, scalability  MTS, COM+, and Component Services cannot be fully taken advantage of by VB.  SOAP: features can be implemented more completely with.NET.

 To get the benefit of.NET framework and its core execution engine: CLR.  Garbage collection  OO mechanism  Standard security services  Integrated debugging tools

 Why not C#  VB.NET----”The most productive tool for building.NET- connected applications. ”----Microsoft Corporation  Root in Basic, the most pure-flavor language product from MS.  Easier for VB programmers: a number of unique features.

 IDE changes  Project Changes  Web Changes  WebClass Changes  Data Changes  Component Authoring Changes  UserControl Changes  Forms Changes  Debugging Changes  Setup and Deployment Changes  International Changes  Windows API Changes  Registry Access Changes  Constant Changes  Namespace Changes  Run-Time Changes

 Everything is object-oriented: abstraction, inheritance, overloading, encapsulation and polymorphism.(Note: no multiple inheritance, but interfaces supported.)  Multithreaded applications are possible.  Language syntax changes ……

 All data are objects, based on the class: System.Object.  E.g. class supports Windows forms: System.Windows.Forms.Form.  The built-in VB functionality is encapsulated in a namespace called System.  E.g Collection has be replaced by System.Collections.  Old control are gone, and new ones have appeared.

 Many keywords are renamed or gone, while some new added.  E.g. Gosub removed  Strict data typing is now enforced  Variable must be declared before used by default.  Cannot assign one data type to another, but can use Ctype to convert between types.  The same as in VC++ and C#.  Structured exception handling: Try…Catch…Finally.

 When calling procedures, must use parentheses.  Parameters are by default passed by value, instead of by reference.  Supports constructors and destructors for use when initializing an object of a class.  If…Then statements are now short-circuited.

 A number of new compound operators  E.g. x+=2  The And, Or, Not and Xor operators have changed from bitwise to boolean operators. Meanwhile, the bitwise versions are BitAnd, BitOr, BitNot, and BitXor.  No default property supported  E.g. VB6: TextBox1=“Hello” VB.Net: TextBox1.Text=“Hello”

 Three new data types  Char: unsigned 16-bit  Short: signed 16-bit  Decimal: signed 96-bit (replaces Variant) Integer Type VB 6.0VB.NET 8 bitByte 16 bitIntegerShort 32 bitLongInteger 64 bitNot ApplicableLong

 “Visual Basic.NET represents a major departure form previous versions of Visual Basic in several ways.” ----Microsoft Corporation  Plenty changes in VB.NET will take lots of effort of even the experienced VB developers.  Old but running fine systems, fund, experienced developers…

 Consideration  Unsupported features ▪ OLE Container Control ▪ Dynamic Data Exchange ▪ DAO or RDO Data Binding ▪ VB5 Controls ▪ DHTML Applications ▪ ActiveX Documents ▪ Property Pages

 Carefully reworked ▪ Single-tier Database Applications ▪ VB Add-ins ▪ Games ▪ Graphics ▪ Drag and Drop Functionality ▪ Variants ▪ Windows APIs

 Visual Basic Upgrade Wizard  Automatically invoked when open a VB6 project.  Results are not satisfactory due to the big different.  Recoding by hand.

 Projects Types  Three most commonly used: ▪ Windows Forms ▪ Web Forms ▪ Console Applications  Statements

Module Module1 Sub Main() Dim intInput As Integer System.Console.WriteLine(“Enter an interger…”) intInput=Val(System.Console.ReadLine()) If intInput=1 Then System.Console.WriteLine(“Thank you!”) ElseIf intInput=2 Then System.Console.WriteLine(“That’s good!”) Else System.Console.WriteLine(“Not a right number!”) End If End Sub End Module

Module Module1 Sub Main() Dim intInput As Integer System.Console.WriteLine(“Enter an interger…”) intInput=Val(System.Console.ReadLine()) Select Case intInput Case 1 System.Console.WriteLine(“Thank you!”) Case 2 System.Console.WriteLine(“That’s good!”) Case 3 To 7 System.Console.WriteLine(“OK”) Case Is> 7 System.Console.WriteLine(“Too Big”) Case Else System.Console.WriteLine(“Not a right number!”) End Select End Sub End Module

 Switch Function  Syntax ▪ Switch(expr1, value1[, expr2, value2…[,exprn, valuen]])  E.g. ▪ intAbsValue=Switch(intValue =0, intValue)  Choose Function  Syntax ▪ Choose(index, choice1[, choice2,…[,choicen]]) ▪ Note: unlike array index, choose index from 1 to n  E.g. ▪ Str=Choose(intValue, “Thank you!”, “That is good!”)

 Syntax: Do [While|Until] condition] [statements] [Exit Do] [statements] Loop  E.g. Module Module1 Sub Main() Dim strInput As String Do Until Ucase(strInput)=“Stop” System.Console.WriteLine(“What should I do?”) strInput=System.Console.ReadLine() Loop End Sub End Module

 Syntax: For index=start To end [Step step] [statements] [Exit For] [statements] Next [index]  E.g. Module Module1 Sub Main() Dim loopIndex As Integer For loopIndex=0 to 3 System.Console.WriteLine(“Hello!”) Next loopIndex End Sub End Module

 Syntax: While condition [statements] End While  E.g. Sub CheckWhile() Dim intCounter As Integer =0 Dim intNumber As Integer =10 While intNumer>6 intNumber-=1 intCounter+=1 End While MsgBox(“The loop ran “ & intCounter & “ times.”) End Sub

 Syntax: For Each element In group [statements] [Exit For] [statements] Next element  E.g. Sub Main() Dim intArray(2), intItem As Integer intArray(0)=0 intArray(1)=1 intArray(2)=2 For Each intItem In intArray System.Console.WriteLine(intArray) Next intItem End Sub

 Syntax: With object [statements] End With  E.g. With TextBox1,Height = 1000.Width = 3000.Text = “Welcome, World!” End With

 E.g. Module Enum Days Sunday=1 Monday=2 Tuesday=3 Wednesday=4 End Enum Sub Main() System.Console.WriteLine(“Monday is day “ & Days.Monday) End Sub End Module

 Steven Holzner, “Visual Basic.NET Black Book”, The Coriolis Group, LLC,  