Ever since Visual Basic was merged into.NET, it's become the core language for creating business applications with Windows. The latest version, VB 2008, is even more useful -- and provides even more incentive for migrating from VB 6. All it lacks is a good book on how to harness its power. Programming Visual Basic 2008 fills the void.
Written in a lively and engaging style by a developer who's grown up with Visual Basic, including both VB 6 and VB.NET, this hands-on guide addresses the core topics of the new VB, from basic to complex, with plenty of code examples.
Programming Visual Basic 2008 also examines.NET programming from the application level with a chapter-by-chapter plan for developing, documenting, and deploying a full data-driven application. You learn, step-by-step, how to build and deploy a library management system, complete with patron, inventory, and barcode support.
The book's broad range of topics include:
* VB language and its syntax
* An overview of the.NET Framework
* Object-oriented development in VB and.NET
* Generic objects, collections, and nullable types
* Design and management of software projects
* Integrating desktop features with Windows Forms
* Database design with SQL Server 2008
* Database interface design with ADO.NET
* The new LINQ feature, and how to use it within VB and.NET
* Embedding XML within application source code
* Encryption and authentication in.NET
* Interacting with data stored in files and directories
* Web development using ASP.NET
* Deploying an application to a user's workstation
* And much moreProgramming Visual Basic 2008 is ideal for VB 6 programmers who are ready to move to.NET, as well as VB.NET programmers who wish to improve their project-focused software development skills. Programming novices and developers coming from other languages will find the book valuable because of its language instruction and project design knowledge.
Once you finish the book, you will have a firm grasp of VB 2008's core concepts and language elements, and understand how to build VB projects as they were intended -- as complete, cohesive solutions.
Sprache
Verlagsort
Zielgruppe
Illustrationen
ISBN-13
978-0-596-51843-1 (9780596518431)
Schweitzer Klassifikation
Tim Patrick is a software architect and developer with 25 years of experience in designing and building custom software solutions. As a Microsoft MVP and Microsoft Certified Solution Developer, he spends his days writing Visual Basic applications. Tim has published five tutorial and reference books on Visual Basic development, along with several articles on Visual Basic and related technologies. His works include "Visual Basic 2005 in a Nutshell" and "Visual Basic 2005 Cookbook," both published by O'Reilly Media.
Inhaltsverzeichnis
Preface
1. Introducing.NET
Before.NET
Back to Introducing.NET
The.NET Object
The Parts of the.NET Framework
From Source Code to EXE
What About Visual Studio and Visual Basic?
Visual Studio 2008
Summary
Project
2. Introducing Visual Basic
The History of the Visual Basic Revolution
Visual Basic from the Inside Out
The Basics of Logic and Data
Data Types and Variables
Intermission
Comments
Option Statements
Basic Operators
Using Functions and Subroutines
Conditions
Loops
Creating Your Own Procedures
Other Flow Control Features
Events and Event Handlers
Namespaces
The My Namespace
Summary
Project
3. Introducing the Project
The Library Project
The Needs of the Users
The Life of a Project
Summary
Project
4. Designing the Database
Relational Databases
SQL Server 2005
SQL
Using Databases in Visual Basic
Documenting the Database
Summary
Project
5.NET Assemblies
What Is an Assembly?
What's Inside an Assembly?
Assemblies and Applications
The My Namespace and Assemblies
Directives and Assemblies
Summary
Project
6. Data and Data Types
The Nature of Computer Data
Data in.NET
Visual Basic Data Types
Literals
Constants
Enumerations
Variables
Variable and Constant Naming Conventions
Local Type Inference
Operators
Static Variables
Arrays
Nullable Types
Common Visual Basic Functions
Summary
Project
7. Windows Forms
Inside a Windows Application
Windows in.NET
Making Forms Useful
Summary
Project
8. Classes and Inheritance
Object-Oriented Programming Concepts
OOP in Visual Basic and.NET
Related Issues
Summary
Project
9. Functional Programming
Lambda Expressions
Object Initializers
Error Handling in Visual Basic
The Nature of Errors in Visual Basic
Unstructured Error Handling
Structured Error Handling
Unhandled Errors
Managing Errors
Summary
Project
10. ADO.NET
What Is ADO.NET?
Overview of ADO.NET
Data Sets Versus No Data Sets
Connecting to SQL Server with Visual Studio
Interacting with SQL Server in Code
Database Transactions
ADO.NET Entity Framework
Summary
Project
11. Security
Security Features in.NET
Cryptography and Encryption
Encryption in.NET
Other Security Features
Summary
Project
12. Overloads and Extensions
What Is Operator Overloading?
What Can You Overload?
Other Operator Overloading Issues
Extension Methods
Summary
Project
13. XML
What Is XML?
The XML Rule
XML Content
Using XML in.NET: The Old Way
Using XML in.NET: The New Way
Summary
Project
14. Application Settings
A Short History of Settings
Settings in Visual Basic 2008
Summary
Project
15. Files and Directories
Traditional Visual Basic File Management
Manipulating Files Through Streams
File Management with the My Namespace
Summary
Project
16. Generics
What Are Generics?
Variations of Generic Declaration
Summary
Project
17. LINQ
What Is LINQ?
Anonymous Types
LINQ to Objects
Basic Query Expressions
Converting Results to Other Forms
Aggregate Queries
Advanced Query Expressions
LINQ to XML
LINQ for ADO.NET-Related Data
Deferred Execution
Summary
Project
18. User Interface
Overview of GDI+
Selecting a Canvas
Choosing Pens and Brushes
Flowing Text from the Font
Imagining Images
Exposing Your True Artist
Paths: Drawings on Macro-Vision
Keeping It Regional
Twisting and Turning with Transformations
Enhancing Controls Through Owner Draw
Windows Presentation Foundation
Enhancing Classes with Attributes
Summary
Project
19. Localization and Globalization
Defining Globalization and Localization
Resource Files
The My.Resources Object
Localizing Forms Within Visual Studio
Adding Resources Outside Visual Studio
Manually Compiling Resources
Other Localization Features
Summary
Project
20. Printing
Printing in Windows
Printing in.NET
Printing a Document
Print Preview
Counting and Numbering Pages
Printing in "Raw" Mode
Summary
Project
21. Reporting
Report Options in.NET
Using Reporting Controls in.NET
Summary
Project
22. Licensing Your Application
Software Licensing Options
License Agreements
Obfuscation
The Library Licensing System
Summary
Project
23. Web Development
How the Internet Works
Programming the Internet
ASP.NET Features
Trying Out ASP.NET
More About Events
State and View State
Data Validation
Database Integration
Windows Communication Foundation
Summary
Project
24. Adding Online Help
Windows Online Help Options
Designing HTML Help
Accessing HTML Help
Summary
Project
25. Deployment
What's Involved in Deployment?
Deployment Methods Within Visual Studio
Summary
Project
26. Project Complete
The Library Project
Visual Basic Flexibility
The Programming Mindset
Summary
A. Installing the Software
B. Software License Agreement
Index