当前位置:编程学习 > C#/ASP.NET >>

给blood的礼物《A Programmers Introduction to Visual Basic.Net》

答案:Overview
Foreword viii
Introduction 1
1 Why Should You Move to Visual Basic.NET? 3
2 Your First VB.NET Application 21
3 Major VB.NET Changes 49
4 Building Classes and Assemblies with VB.NET 73
5 Inheritance with VB.NET 91
6 Database Access with VB.NET and ADO.NET 105
7 Building Web Applications with VB.NET and ASP.NET 133
8 Building Web Services with VB.NET 153
9 Building Windows Services with VB.NET 165
10 Upgrading VB6 Projects to VB.NET 175
A The Common Language Specification 187
Index 191
Contents
INTRODUCTION 1
1 WHY SHOULD YOU MOVE TO VISUAL BASIC.NET? 3
Visual Basic.NET: A New Framework....................................................3
The Common Language Runtime............................................................6
Managed Execution ................................................................................8
Microsoft Intermediate Language (MSIL) ........................................8
The Just-In-Time Compiler ................................................................9
Executing Code ..................................................................................9
Assemblies........................................................................................10
The Common Type System ..................................................................12
Classes ..............................................................................................13
Interfaces ..........................................................................................13
Value Types ......................................................................................14
Delegates ..........................................................................................14
The .NET Framework Class Library ....................................................14
Self-Describing Components ................................................................15
Cross-Language Interoperability ..........................................................16
The Catch..........................................................................................17
Security ..................................................................................................17
Code Access Security (CAS)............................................................18
Role-Based Security ........................................................................18
Summary................................................................................................18
2 YOUR FIRST VB.NET APPLICATION 21
The Start Page........................................................................................21
Creating a New Project..........................................................................23
Examining the IDE ..........................................................................25
Creating Your First VB.NET Application..............................................31
Windows Application Enhancements ....................................................36
Resizing Controls Automatically......................................................36
Anchoring Controls to the Form Edges ..........................................38
Easier Menus ....................................................................................41
Setting Tab Order ............................................................................42
Line and Shape Controls: You’re Outta Here ..................................44
Form Opacity....................................................................................45
Summary................................................................................................48
3 MAJOR VB.NET CHANGES 49
General Changes ....................................................................................49
Default Properties ............................................................................49
Subs and Functions Require Parentheses ........................................50
Changes to Boolean Operators ........................................................51
Declaration Changes ........................................................................52
Support for New Assignment Operators ..........................................52
ByVal Is Now the Default ................................................................53
Block-Level Scope ..........................................................................53
While...Wend Becomes While...End While ..................................54
Procedure Changes ..........................................................................54
Array Changes ..................................................................................57
Option Strict ..................................................................................58
Data Type Changes ..........................................................................59
Structured Error Handling ................................................................62
Structures Replace UDTs ................................................................64
IDE Changes ....................................................................................66
New Items ..............................................................................................66
Constructors and Destructors ..........................................................66
Namespaces ......................................................................................67
Inheritance ........................................................................................69
Overloading ......................................................................................69
Free Threading..................................................................................70
Garbage Collection ..........................................................................72
Summary................................................................................................72
4 BUILDING CLASSES AND ASSEMBLIES WITH VB.NET 73
Creating Your First Class Library ..........................................................74
Adding a “Souped-Up” Class ..........................................................74
Creating Properties ..........................................................................75
Building a Test Client ......................................................................76
Read-only and Write-only Properties ..............................................79
Parameterized Properties ..................................................................79
Default Properties ............................................................................80
Constructors in Your Classes............................................................80
Classes Without Constructors ..........................................................81
Adding Methods to Classes..............................................................82
Adding Events ..................................................................................82
The “Final” Code ..................................................................................84
Compiling the Assembly........................................................................86
Reusing the Assembly in Other Applications ..................................87
How .NET Locates Assemblies........................................................88
Summary................................................................................................90
5 INHERITANCE WITH VB.NET 91
What Is Inheritance? ..............................................................................91
Interface Inheritance in VB6 ......................................

上一个:从VB6到VB.NET的变化综述(转)
下一个:细说VB.NET(上)

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,