
88
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
Chapter 6Program Structure
6
Program Structure
With its tight integration into the .NET Common Language Runtime, Visual Basic
owes much of its present personality to .NET. This tie to the .NET Framework
and the object-oriented nature of the language itself work together to influence
the structure of VB programs. This chapter discusses aspects of Visual Basic
program structure in the .NET environment.
Visual Studio Application Types
The original version of Visual Basic generated applications that were form-focused
and included rich features for interaction with the user and the Windows environ-
ment. Later releases added support for DLL generation, specifically ActiveX DLLs.
With its integration into .NET, Visual Basic compiler can now generate several
specific types of output.
Windows (Forms) Applications
In .NET, Windows applications make heavy use of the System.Windows.
Forms namespace and the control classes contained within it. Although these
applications may look like any other non-.NET Windows application, inter-
nally they are quite different and are fully managed by the .NET Common
Language Runtime.
Console Applications
Back in the days before Windows and other GUI-based platforms, most
applications were console applications. These wonders of technology inter-
acted with the user ...