SlideShare a Scribd company logo
Introduction to Visual Studio.NET
Agenda What is .NET? .NET Framework Visual Studio.NET C# Visual Basic.NET Q & A
What is Microsoft .NET? .NET represents an advanced new generation of software that will drive the Next Generation Internet.  Its purpose is to make information available any time, any place, and on any device. Quick Definition .NET is an initiative to integrate all Microsoft products with the “Next Generation” web. http://www.microsoft.com/net/
Next Generation Internet Web site Web site Web site Backend App Mega Service Backend App Mega Service Loosely-coupled, services connected by XML-based messages and contracts, written in many languages Service Device XML- msgs Service Service Service
What is Microsoft .NET? (Cont.) Core components of .NET are: .NET Infrastructure and Tools .NET Services An integrated set of building block services for the new Internet, including Passport.NET (for user authentication), and services for file storage, user preference management, calendar management, and many others. .NET User Experience A broader, more adaptive user experience, where information is delivered in a variety of ways on a variety of different devices. .NET Device Software Enables a new breed of smart Internet devices that can leverage Web Services http://www.microsoft.com/business/vision/netvision.asp
.NET Infrastructure and Tools .NET Infrastructure and Tools .NET Enterprise Servers SQL 2000 Exchange 2000 ISA 2000 Host Integration Server 2000 Application Center 2000 BizTalk Server 2000 Commerce Server 2000 Visual Studio.NET .NET Framework Windows.NET “ Whistler” (Windows XP)
.NET Framework
.NET Framework .NET Framework consists of 3 main parts: Common Language Runtime Framework Classes/Libraries ASP.NET http://msdn.microsoft.com/net
The .NET Framework Base Class Library Common Language Specification Common Language Runtime ADO.NET: Data and XML VB C++ C# Visual Studio.NET ASP.NET: Web Services and Web Forms JScript … Windows Forms Windows Forms
Common Language Runtime (CLR) A common runtime for all .NET languages Common type system Common metadata Intermediate Language (IL) to native code compilers Memory allocation and garbage collection Code execution and security Over 15 languages supported today C#, VB, Jscript, Visual C++ from Microsoft Perl, Python, Smalltalk, Cobol, Haskell, Mercury, Eiffel, Oberon, Oz, Pascal, APL, CAML, Scheme, etc. Rational is working on Java compiler for CLR
Common Language Runtime (CLR) Enables cross-language interoperability Common Language Specification describes interoperability requirements Language/Hardware/OS Independent Compact framework for small devices Industrial strength Garbage collector Designed for multi-processor servers
CLR: Execution Model VB Source code Compiler C++ C# Compiler Compiler Assembly IL Code Assembly IL Code Assembly IL Code Operating System Services Common Language Runtime JIT Compiler Native Code Managed code Unmanaged Component
.NET Framework Libraries Single  consistent  set of object oriented class libraries to enable building distributed web applications (Unified Classes) Built using classes arranged across logical hierarchical namespaces For example: System.Data.SQL Work with all CLR languages No more “VBRun” or “MFC” divide
.NET Framework Libraries
ASP.NET ASP.NET is a new programming framework designed to make web apps easier to:  Build, Deploy, Run Radical advancement of today’s ASP Broader programming language support Visual Basic.NET, Jscript.NET, C# Easier page programming model Namespaces Richer XML features and integration XCopy/FTP deployment Better reliability and recovery Excellent Visual Studio designer support
ASP.NET ASP.NET is compiled, not interpreted Better performance Early binding, strong typing, JIT compiling to native code Configuration settings in XML-based files Session state can now be shared across a web farm of ASP.NET servers .NET State Server Process manages state Application state is still single sever ASP.NET detects and recovers from problems Access violations, memory leaks, deadlocks ASP.NET supports pre-emptive cycling of apps Time and request based settings
Visual Studio.NET
Visual Studio.NET Integrated Development Environment Visual Basic.NET Many language enhancements Inheritance,Overloading, Free Threading  Visual C++ Integration with .NET Framework with managed extensions (classes) C# New development language Based on C/C++ with Garbage Collection/Memory Management JUMP (Java User Migration Path) to .NET  (1/25/01)   Visual J++  has been removed from the Visual Studio suite. http://msdn.microsoft.com/vstudio
JUMP to  .NET Consists of 3 sets of tools and a service offering  Interoperability support Programming tools support Automated conversion from Java language source code to C# Migration services
VS.NET Features Single IDE for all Languages Server Explorer Event Viewer, Message Queues, Services SQL Databases, Data Connection, Etc. Integrated IE Browser HTML/XML Editors Macros/Macro Explorer Solution Explorer Tabbed Documents Dynamic Help Common Forms Editor VB.NET, C++, and C#
Visual Studio.NET Demo
C#
Intro to C# Design Goals of  C# Component Orientated Language Robust and Durable Software Features Classes Namespaces No header files VB.NET vs. C# Ability to embed C++ code in C# code Elegance of C/C++ language
Design Goals C# Component Oriented Properties, methods, events Robust and Durable Garbage collection (No memory leaks and stray pointers) Exception Handling Type-safety (No uninitialized variables) Based on C++ Interoperability Support for XML, SOAP
Visual Basic.NET
Visual Basic.NET Leave it in VB6 WebClasses, ActiveX Documents, DHTML Projects Thinking in VB.NET Data Types, Type vs. Structure Property Functions, Zero Bound Arrays Default Parameters New Features Forms Designer, Declaration Syntax Structured Exception Handling Overloading, Inheritance Free Threading ADO.NET
VB.NET: Data Types True is now = 1 Integer Data type has changed Short (Int16), Integer (Int32), Long (Int64) VB 6 VB.NET Dim intAge As Integer Dim intID As Long Dim intAge As Short Dim intID As Integer
VB.NET: Type vs. Structure Defining user defined types (UDT) has a new syntax VB 6 VB.NET Type Customer CustomerNumber as Long CustomerName As String CustomerCompany As String End Type Structure Customer Public CustomerNumber as Integer Public CustomerName As String Public CustomerCompany As String End Structure
VB.NET: Property Functions VB 6 VB.NET Public Property Get CustomerName() As String CustomerName = m_CustName  End Property Public Property Let CustomerName(sCustName As String) m_CustName = sCustName End Property Public Property CustomerName() As String Get CustomerName = m_CustName End Get Set m_CustName = Value End Set End Property
VB.NET: Zero Bound Arrays Option Base 1|0 has been removed All arrays are base 0 The following declaration has 5 elements, arrElements(0) thru arrElements(4) Dim arrElements(5) As String
VB.NET: Default Properties Default properties are no longer supported. Important! Early Binding is key in VB6 VB 6 VB.NET Note: Recordset (COM ADO) is not the preferred data storage object in VB.NET, this is just an example. txtAddress = rs(“Addr_1”) lblFName = “First Name” txtAddress.Text = rs(“Addr_1”).value lblFName.Text = “First Name”
VB.NET Forms Designer New Forms Designer VB.NET, C++, C# Enhanced Menu Editor Control Anchors New Properties Visual Inheritance
VB.NET Demo
VB.NET: New Declaration Syntax Variables can now be declared and initialized on declaration line. VB 6 VB.NET Dim intLoop As Integer intLoop = 10 Dim intLoop As Integer = 10
VB.NET: Structured Exception Handling VB.NET supports elegant error handling VB 6 VB.NET On Error Goto ErrTag ... ‘ clean up Exit Function ErrTag: ‘ error handling ‘ clean up End Function Try ... Catch ‘ error handling Finally ‘ clean up End Try
VB.NET: Overloading Functions can now be overloaded (accept arguments of different types) VB.NET Overloads Function ConvertSQL(ByVal strString As String) As String  ConvertSQL = "'" & strString & "'" End Function Overloads Function ConvertSQL(ByVal intNum As Integer) As String ConvertSQL = CStr(intNum) End Function
VB.NET: Inheritance Public Class Customer Private m_CustName As String Public Property CustomerName() As String Get CustomerName = m_CustName End Get Set m_CustName = Value End Set End Property  End Class Public Class CustCompany Inherits Customer Private m_CustCompany As String Public Property CustomerCompany() As String Get CustomerCompany = m_CustCompany End Get Set m_CustCompany = Value End Set End Property End Class
ADO.NET ADO.NET is the preferred data access method in the .NET  Framework Better support for disconnected data access Specialized namespaces System.Data.SQL – Tuned for SQL Server System.Data.ADO – OLEDB Portable Native XML Support
ADO.NET ADOConnection Similar to Connection object in ADO ADOCommand Similar to Command object in ADO ADODataSetCommand Somewhat like Recordsets for ADO.NET (DataSet) Designed for stateless operations ADODataReader For streaming methods, similar to Stream SQLConnection, SQLCommand, and SQLDataSetCommand, SQLDataReader
VB.NET Demo
VB 6 Moving Forward Avoid Web Classes, ActiveX Docs, DHTML Apps Development Techniques Early Binding Don’t use Default Properties Use Constants (such as  true ) Avoid GoSub Use ByVal and ByRef explicitly (ByVal is now default) Use ADO VB6 to VB.NET Conversion Techniques Relax, take breaks often
Resources Microsoft http://www.microsoft.com/net http://msdn.microsoft.com/net Programmer Resources http://www.gotdotnet.com http://www.devx.com VB6 to VB.NET Whitepaper http://msdn.microsoft.com/library/techart/vb6tovbdotnet.htm Example Site http://www.ibuyspy.com

More Related Content

PPTX
Introduction to ASP.NET
DOCX
Spring notes
PPTX
Validation Controls in asp.net
PPTX
Introduction to asp.net
PPT
Introduction To Dotnet
PPSX
Introduction to .net framework
PPT
Introduction to ASP.NET
Spring notes
Validation Controls in asp.net
Introduction to asp.net
Introduction To Dotnet
Introduction to .net framework

What's hot (20)

PPT
Introduction to .NET Framework
PPT
Javascript
PPTX
Components of .NET Framework
PPT
C# Exceptions Handling
PPT
Introduction to JavaScript (1).ppt
PDF
Asp.net state management
PPTX
CSharp Presentation
PDF
Responsive Web Design with HTML5 and CSS3
PPT
android layouts
PPTX
C# 101: Intro to Programming with C#
PPT
Introduction to JavaScript
PPT
.Net overview|Introduction Of .net
PPTX
VB.NET:An introduction to Namespaces in .NET framework
PDF
Java IO
PPT
Introduction to Javascript
PPT
PDF
PPS
Introduction to Bootstrap: Design for Developers
PPTX
jQuery
PPTX
Day: 1 Introduction to Mobile Application Development (in Android)
Introduction to .NET Framework
Javascript
Components of .NET Framework
C# Exceptions Handling
Introduction to JavaScript (1).ppt
Asp.net state management
CSharp Presentation
Responsive Web Design with HTML5 and CSS3
android layouts
C# 101: Intro to Programming with C#
Introduction to JavaScript
.Net overview|Introduction Of .net
VB.NET:An introduction to Namespaces in .NET framework
Java IO
Introduction to Javascript
Introduction to Bootstrap: Design for Developers
jQuery
Day: 1 Introduction to Mobile Application Development (in Android)
Ad

Viewers also liked (20)

PPTX
File handling in vb.net
PPTX
Looping statement in vb.net
PPTX
Introduction to VB.NET - UP SITF
PPT
Introduction to visual basic programming
PPTX
Operators , Functions and Options in VB.NET
PPTX
Visual Basic Controls ppt
PPTX
Disconnected Architecture and Crystal report in VB.NET
PDF
Moving ASP.NET MVC to ASP.NET Core
PPTX
Part21 combobox vb.net
PPTX
History object
PPTX
Part17 radio button using vb.net 2012
PPTX
Presentacion de Visual Basic
PPS
Presentación_VisualBasic
PDF
Hanuman chalisa in tamil
PPT
Working in Visual Studio.Net
PPT
Excel 2003 formulas
PDF
Switchable Map APIs with Drupal
PDF
Python Programming - IV. Program Components (Functions, Classes, Modules, Pac...
PPTX
Ict 10 ang computer file system
PPTX
Objects and classes in Visual Basic
File handling in vb.net
Looping statement in vb.net
Introduction to VB.NET - UP SITF
Introduction to visual basic programming
Operators , Functions and Options in VB.NET
Visual Basic Controls ppt
Disconnected Architecture and Crystal report in VB.NET
Moving ASP.NET MVC to ASP.NET Core
Part21 combobox vb.net
History object
Part17 radio button using vb.net 2012
Presentacion de Visual Basic
Presentación_VisualBasic
Hanuman chalisa in tamil
Working in Visual Studio.Net
Excel 2003 formulas
Switchable Map APIs with Drupal
Python Programming - IV. Program Components (Functions, Classes, Modules, Pac...
Ict 10 ang computer file system
Objects and classes in Visual Basic
Ad

Similar to Visual Studio.NET (20)

PPT
Visual studio.net
PPT
Visual studio.net
PPTX
.NET presentation
DOC
235042632 super-shop-ee
PDF
DOT NET TRaining
PDF
Rcs project Training Bangalore
PPT
Intro dotnet
PPT
Intro dotnet
PPT
Intro dotnet
PPT
Intro dotnet
PDF
Bt0082 visual basic
DOCX
Vb.net class notes
PPTX
Microsoft.net architecturte
PPT
Introduction to dot net framework by vaishali sahare [katkar]
PPTX
Vb and asp.net
PPTX
VB IMPORTANT QUESTION
PPT
Introduction to Visual Studio.NET
PPTX
Presentation1.pptx
Visual studio.net
Visual studio.net
.NET presentation
235042632 super-shop-ee
DOT NET TRaining
Rcs project Training Bangalore
Intro dotnet
Intro dotnet
Intro dotnet
Intro dotnet
Bt0082 visual basic
Vb.net class notes
Microsoft.net architecturte
Introduction to dot net framework by vaishali sahare [katkar]
Vb and asp.net
VB IMPORTANT QUESTION
Introduction to Visual Studio.NET
Presentation1.pptx

Recently uploaded (20)

PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
A Presentation on Artificial Intelligence
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
KodekX | Application Modernization Development
20250228 LYD VKU AI Blended-Learning.pptx
A Presentation on Artificial Intelligence
Dropbox Q2 2025 Financial Results & Investor Presentation
Reach Out and Touch Someone: Haptics and Empathic Computing
Spectral efficient network and resource selection model in 5G networks
Unlocking AI with Model Context Protocol (MCP)
Mobile App Security Testing_ A Comprehensive Guide.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Electronic commerce courselecture one. Pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Encapsulation_ Review paper, used for researhc scholars
Digital-Transformation-Roadmap-for-Companies.pptx
Big Data Technologies - Introduction.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
KodekX | Application Modernization Development

Visual Studio.NET

  • 2. Agenda What is .NET? .NET Framework Visual Studio.NET C# Visual Basic.NET Q & A
  • 3. What is Microsoft .NET? .NET represents an advanced new generation of software that will drive the Next Generation Internet. Its purpose is to make information available any time, any place, and on any device. Quick Definition .NET is an initiative to integrate all Microsoft products with the “Next Generation” web. http://www.microsoft.com/net/
  • 4. Next Generation Internet Web site Web site Web site Backend App Mega Service Backend App Mega Service Loosely-coupled, services connected by XML-based messages and contracts, written in many languages Service Device XML- msgs Service Service Service
  • 5. What is Microsoft .NET? (Cont.) Core components of .NET are: .NET Infrastructure and Tools .NET Services An integrated set of building block services for the new Internet, including Passport.NET (for user authentication), and services for file storage, user preference management, calendar management, and many others. .NET User Experience A broader, more adaptive user experience, where information is delivered in a variety of ways on a variety of different devices. .NET Device Software Enables a new breed of smart Internet devices that can leverage Web Services http://www.microsoft.com/business/vision/netvision.asp
  • 6. .NET Infrastructure and Tools .NET Infrastructure and Tools .NET Enterprise Servers SQL 2000 Exchange 2000 ISA 2000 Host Integration Server 2000 Application Center 2000 BizTalk Server 2000 Commerce Server 2000 Visual Studio.NET .NET Framework Windows.NET “ Whistler” (Windows XP)
  • 8. .NET Framework .NET Framework consists of 3 main parts: Common Language Runtime Framework Classes/Libraries ASP.NET http://msdn.microsoft.com/net
  • 9. The .NET Framework Base Class Library Common Language Specification Common Language Runtime ADO.NET: Data and XML VB C++ C# Visual Studio.NET ASP.NET: Web Services and Web Forms JScript … Windows Forms Windows Forms
  • 10. Common Language Runtime (CLR) A common runtime for all .NET languages Common type system Common metadata Intermediate Language (IL) to native code compilers Memory allocation and garbage collection Code execution and security Over 15 languages supported today C#, VB, Jscript, Visual C++ from Microsoft Perl, Python, Smalltalk, Cobol, Haskell, Mercury, Eiffel, Oberon, Oz, Pascal, APL, CAML, Scheme, etc. Rational is working on Java compiler for CLR
  • 11. Common Language Runtime (CLR) Enables cross-language interoperability Common Language Specification describes interoperability requirements Language/Hardware/OS Independent Compact framework for small devices Industrial strength Garbage collector Designed for multi-processor servers
  • 12. CLR: Execution Model VB Source code Compiler C++ C# Compiler Compiler Assembly IL Code Assembly IL Code Assembly IL Code Operating System Services Common Language Runtime JIT Compiler Native Code Managed code Unmanaged Component
  • 13. .NET Framework Libraries Single consistent set of object oriented class libraries to enable building distributed web applications (Unified Classes) Built using classes arranged across logical hierarchical namespaces For example: System.Data.SQL Work with all CLR languages No more “VBRun” or “MFC” divide
  • 15. ASP.NET ASP.NET is a new programming framework designed to make web apps easier to: Build, Deploy, Run Radical advancement of today’s ASP Broader programming language support Visual Basic.NET, Jscript.NET, C# Easier page programming model Namespaces Richer XML features and integration XCopy/FTP deployment Better reliability and recovery Excellent Visual Studio designer support
  • 16. ASP.NET ASP.NET is compiled, not interpreted Better performance Early binding, strong typing, JIT compiling to native code Configuration settings in XML-based files Session state can now be shared across a web farm of ASP.NET servers .NET State Server Process manages state Application state is still single sever ASP.NET detects and recovers from problems Access violations, memory leaks, deadlocks ASP.NET supports pre-emptive cycling of apps Time and request based settings
  • 18. Visual Studio.NET Integrated Development Environment Visual Basic.NET Many language enhancements Inheritance,Overloading, Free Threading Visual C++ Integration with .NET Framework with managed extensions (classes) C# New development language Based on C/C++ with Garbage Collection/Memory Management JUMP (Java User Migration Path) to .NET (1/25/01) Visual J++ has been removed from the Visual Studio suite. http://msdn.microsoft.com/vstudio
  • 19. JUMP to .NET Consists of 3 sets of tools and a service offering Interoperability support Programming tools support Automated conversion from Java language source code to C# Migration services
  • 20. VS.NET Features Single IDE for all Languages Server Explorer Event Viewer, Message Queues, Services SQL Databases, Data Connection, Etc. Integrated IE Browser HTML/XML Editors Macros/Macro Explorer Solution Explorer Tabbed Documents Dynamic Help Common Forms Editor VB.NET, C++, and C#
  • 22. C#
  • 23. Intro to C# Design Goals of C# Component Orientated Language Robust and Durable Software Features Classes Namespaces No header files VB.NET vs. C# Ability to embed C++ code in C# code Elegance of C/C++ language
  • 24. Design Goals C# Component Oriented Properties, methods, events Robust and Durable Garbage collection (No memory leaks and stray pointers) Exception Handling Type-safety (No uninitialized variables) Based on C++ Interoperability Support for XML, SOAP
  • 26. Visual Basic.NET Leave it in VB6 WebClasses, ActiveX Documents, DHTML Projects Thinking in VB.NET Data Types, Type vs. Structure Property Functions, Zero Bound Arrays Default Parameters New Features Forms Designer, Declaration Syntax Structured Exception Handling Overloading, Inheritance Free Threading ADO.NET
  • 27. VB.NET: Data Types True is now = 1 Integer Data type has changed Short (Int16), Integer (Int32), Long (Int64) VB 6 VB.NET Dim intAge As Integer Dim intID As Long Dim intAge As Short Dim intID As Integer
  • 28. VB.NET: Type vs. Structure Defining user defined types (UDT) has a new syntax VB 6 VB.NET Type Customer CustomerNumber as Long CustomerName As String CustomerCompany As String End Type Structure Customer Public CustomerNumber as Integer Public CustomerName As String Public CustomerCompany As String End Structure
  • 29. VB.NET: Property Functions VB 6 VB.NET Public Property Get CustomerName() As String CustomerName = m_CustName End Property Public Property Let CustomerName(sCustName As String) m_CustName = sCustName End Property Public Property CustomerName() As String Get CustomerName = m_CustName End Get Set m_CustName = Value End Set End Property
  • 30. VB.NET: Zero Bound Arrays Option Base 1|0 has been removed All arrays are base 0 The following declaration has 5 elements, arrElements(0) thru arrElements(4) Dim arrElements(5) As String
  • 31. VB.NET: Default Properties Default properties are no longer supported. Important! Early Binding is key in VB6 VB 6 VB.NET Note: Recordset (COM ADO) is not the preferred data storage object in VB.NET, this is just an example. txtAddress = rs(“Addr_1”) lblFName = “First Name” txtAddress.Text = rs(“Addr_1”).value lblFName.Text = “First Name”
  • 32. VB.NET Forms Designer New Forms Designer VB.NET, C++, C# Enhanced Menu Editor Control Anchors New Properties Visual Inheritance
  • 34. VB.NET: New Declaration Syntax Variables can now be declared and initialized on declaration line. VB 6 VB.NET Dim intLoop As Integer intLoop = 10 Dim intLoop As Integer = 10
  • 35. VB.NET: Structured Exception Handling VB.NET supports elegant error handling VB 6 VB.NET On Error Goto ErrTag ... ‘ clean up Exit Function ErrTag: ‘ error handling ‘ clean up End Function Try ... Catch ‘ error handling Finally ‘ clean up End Try
  • 36. VB.NET: Overloading Functions can now be overloaded (accept arguments of different types) VB.NET Overloads Function ConvertSQL(ByVal strString As String) As String ConvertSQL = "'" & strString & "'" End Function Overloads Function ConvertSQL(ByVal intNum As Integer) As String ConvertSQL = CStr(intNum) End Function
  • 37. VB.NET: Inheritance Public Class Customer Private m_CustName As String Public Property CustomerName() As String Get CustomerName = m_CustName End Get Set m_CustName = Value End Set End Property End Class Public Class CustCompany Inherits Customer Private m_CustCompany As String Public Property CustomerCompany() As String Get CustomerCompany = m_CustCompany End Get Set m_CustCompany = Value End Set End Property End Class
  • 38. ADO.NET ADO.NET is the preferred data access method in the .NET Framework Better support for disconnected data access Specialized namespaces System.Data.SQL – Tuned for SQL Server System.Data.ADO – OLEDB Portable Native XML Support
  • 39. ADO.NET ADOConnection Similar to Connection object in ADO ADOCommand Similar to Command object in ADO ADODataSetCommand Somewhat like Recordsets for ADO.NET (DataSet) Designed for stateless operations ADODataReader For streaming methods, similar to Stream SQLConnection, SQLCommand, and SQLDataSetCommand, SQLDataReader
  • 41. VB 6 Moving Forward Avoid Web Classes, ActiveX Docs, DHTML Apps Development Techniques Early Binding Don’t use Default Properties Use Constants (such as true ) Avoid GoSub Use ByVal and ByRef explicitly (ByVal is now default) Use ADO VB6 to VB.NET Conversion Techniques Relax, take breaks often
  • 42. Resources Microsoft http://www.microsoft.com/net http://msdn.microsoft.com/net Programmer Resources http://www.gotdotnet.com http://www.devx.com VB6 to VB.NET Whitepaper http://msdn.microsoft.com/library/techart/vb6tovbdotnet.htm Example Site http://www.ibuyspy.com

Editor's Notes

  • #4: This chart summarizes the status of Microsoft SNA Server 4.0. By the way, SNA Server 4.0 is available now as a standalone product and as part of the newest version of Microsoft BackOffice Server - version 4.0.
  • #10: The .NET framework exposes numerous classes to the developer. These classes allow the development of rich client applications and Web based applications alike. In the above slide these classes have been divided into 4 areas. ASP.NET provides the core Web infrastructure such as Web Forms for UI based development and Web Services for programmatic interface development, User interface development on the Windows platform can be done using Windows Forms ADO.NET and XML provide the functionality for data access. Finally, the core base classes provide infrastructure services such as security, transaction management etc.
  • #13: We already know that an assembly does NOT contain native binary code, but instead MSIL code. Obviously before the MSIL code can be executed it must be converted into native binary instructions. Converted? Does this mean interpreted? NO! The MSIL code is compiled and not thrown away. This means that next time the code is requested it is already in the form of machine instructions and thus this mechanism in the log run is far more efficient than an interpreter for example. The compilation is carried out by a JIT (Just In Time) compiler. Does the compiler compile all of the code in one go? The answer to this question is NO. If this approach was taken there would be a long delay during the applications initialisation, and realistically not all the code within the module will be required in one go. Instead, when the code is loaded a ‘stub’ is connected to each method. When a method is called via the stub the compiler generates the binary native code. This mechanism goes a long way to describing why the compiler is called a ‘JIT’ compiler. Compiled code is only saved in the same process (run) of an application. And even then it's not guaranteed. we do what's called "code-pitching" which means we through away cold (or little used) JITed code if memory pressure requires it. We do persisted JITed code in the install time scenario. The benefit for to this system is obviously portability. A couple of things to think about - Let’s imagine you’ve built a managed component for the Intel Pentium III platform. It works fine. Later in the year Intel release a super new chip. When Microsoft release a new version of the JIT, it’s possible that this brand spanking new version of the JIT will have learned a few new tricks e.g. to make use of the new improved instruction set of the new Intel chip or new CPU registers! And finally, Microsoft plan to offer a tool called PREJIT. This tool will compile your assemblies into native code and save the resultant binary executable code to disk. When the assemblies are next loaded the binary code is already available thus improving startup time and execution speeds.
  • #24: <none>