Introduction to vb.net / PDF

Introduction to vb.net / PDF











Introduction to vb.net / PDF















Table of Contents







An overview of the Visual Studio.net Framework.. 3
.net Framework Components. 3
Web Services. 4
User Interface. 4
Data and XML.. 4
Base Class Library. 4
The Common Language Runtime. 5
System Namespace. 6
The .net IDE.. 8
Visual Basic.net.. 9
Visual Basic.net Data Types. 9
The System.Object Class. 10
Garbage Collection in Visual Basic.net 10
Object Oriented Programming in Visual Basic.net 11
Visual Basic.net Classes – Checking Account Sample. 11
Visual Basic.net – A High Level Summary. 13
The Framework. 14
Syntax. 14
Distribution of Applications. 14
Data Access and XML.. 15
Accessing Data with ADO.net.. 16
XML in Visual Basic.net 18
ASP.net and Web Services.. 20
A final note on ASP.net 21
Web Services. 21



******************




Sample of the pdf document 




An overview of the Visual Studio.net Framework

 Unless you have been living under a rock for the past year, you must have heard of .net (“dot net”) by now.  What is .net?  Is it a new operating environment?  Is it a new language?  Is it a new way of developing distributed applications?  The answer is “Yes”: .net is all of these things and more.

The .net world was created by Microsoft to allow users to have access to their information, files, or programs anywhere, anytime, and on any platform or device. 

When Microsoft introduced the first Windows operating system, it took application development and system design to a new level: multi-tasking.  With each new version of Windows, multi-tasking has been driven more towards distributed processing and .net is the next step. 

Visual Studio.net has an entirely new, object-oriented framework.  In this paper I will introduce you to some of features in Visual Studio.net, however, I will focus mostly on Visual Basic.net and draw some comparisons to its predecessor VB 6.   The reader of this paper will not be able to start developing code in Visual Basic.net after reading, but should have a high-level view of the changes in Visual Basic.net and how they differ from previous versions.

As shown in Figure 1, Visual Basic sits at the top of the framework (along with the other languages in Visual Studio.net).  Below that is the Common Language Specification (CLS).  This specification is a set of rules that govern the minimum language features that must be supported to ensure that a language will interoperate with other CLS-compliant components and tools.  As long as a language conforms to the CLS, it is guaranteed to work with the CLR.  In this way, when third-party compilers target the .net framework, as long as they conform to the CLS, the code is guaranteed to work.

You might also notice that VB is now and “equal” or peer of C++, C# and any other language that is .net compliant.  Visual Basic.net shares the same variable types, arrays, user-defined types, classes, graphical forms, visual controls and interfaces as these other languages.

Web Services

Web Services provide a Web-enabled user interface with tools that include various HTML controls and Web controls.  Forms creating using Web Services are the same as forms created for a Windows application.  The code behind a Web form is the same as the code behind a Windows form.  The markup language that is used by Web forms is still there, but the Web form applications generate it for you.

User Interface 

At the same level as Web Services is the User Interface.  The User Interface is where Windows forms live.  It also provides code for drawing to the screen, printing, rendering text and displaying images.

Data and XML

 Both Web Services and the User Interface sit on top of the Data and XML block.  As you will learn later in this paper, XML (or extensible markup language) plays just as important of a role as data.  XML is used to provide a text view of data that can be shared between services on the same PC or passed through a firewall to a web server across the country using SOAP (more on SOAP a little later).

Base Class Library

 The base class library (BCL) is underneath the Data and XML block.  This area is the origin for the base class of all .net programs.  Everything in Visual Basic.net is an object, and all objects originate from a class named System.  The BCL also provides collections, localization, text objects, interoperability with non-.net code and ActiveX controls and a variety of other services. 












Download Introduction to vb.net / PDF







Introduction to vb.net / PDF

0 commentaires: