Visual Basic® .NET by Example

Book description

Visual Basic.NET by Example helps the reader learn Visual Studio.NET as well as how the language interacts with the .NET framework and other Visual Studio programming languages. Using this book, the reader will learn to build stand alone applications or applications and services which run within Microsoft's .NET Framework. This book explains each topic using real code examples to illustrate the VB.NET language and teaches in an easy-to-use tutorial manner.

Table of contents

  1. Copyright
  2. About the Authors
  3. Acknowledgments
  4. Tell Us What You Think!
  5. Introduction
  6. First Steps in Visual Studio .NET Environment
    1. Overview of the Environment
      1. Introduction
      2. Tour of Visual Studio .NET
      3. What's Next?
      4. Reviewing It
      5. Checking It
      6. Applying It
    2. Creating the First Application
      1. Introduction
      2. Creating a New Project
      3. A Tour of the Generated Project
      4. What's Next
      5. Reviewing It
      6. Checking It
      7. Applying It
    3. Compiling and Running the Application
      1. Building the Project
      2. Build Messages
      3. Building and Rebuilding
      4. Running the Application
      5. Under the Covers
      6. What's Next
      7. Reviewing It
      8. Checking It
      9. Applying It
    4. Visual Basic .NET Project Types
      1. Windows Application
      2. Class Library
      3. Windows Control Library
      4. ASP .NET Web Application
      5. ASP .NET Web Service
      6. Web Control Library
      7. Console Application
      8. Windows Service
      9. Empty Project
      10. Empty Web Project
      11. What's Next
      12. Reviewing It
      13. Checking It
      14. Applying It
  7. Language Basics
    1. Language Description
      1. Introduction to Programming
      2. Programming Languages
      3. Structure of a Visual Basic Project
      4. Identifiers, Literals, Keywords, and Whitespace
      5. Comments
      6. What's Next
      7. Reviewing It
      8. Checking It
      9. Applying It
    2. Fundamental Data Types
      1. Numeric Data Types
      2. Boolean Data Type
      3. String and Char Data Types
      4. Date Data Type
      5. Other Data Types
      6. What's Next
      7. Reviewing It
      8. Checking It
      9. Applying It
    3. Data Conversion and Expressions
      1. Implicit Data Conversion
      2. Explicit Data Conversion
      3. In-place Operators
      4. Comparison Operators
      5. Boolean Operators
      6. Expressions and Operator Precedence
      7. What's Next
      8. Reviewing It
      9. Checking It
      10. Applying It
    4. Arrays, Enumerations, and Structures
      1. Arrays
      2. Enumerations
      3. Structure Declaration
      4. Using the Structured Data Types
      5. What's Next
      6. Reviewing It
      7. Checking It
      8. Applying It
    5. Control Statements
      1. The If Statement
      2. The Select Case Statement
      3. The For Loop
      4. The Do Loop
      5. The While Loop
      6. What's Next
      7. Reviewing It
      8. Checking It
      9. Applying It
    6. Subroutines and Functions
      1. Introduction to Structured Programming
      2. Subroutines
      3. Functions
      4. Scope and Lifetime
      5. What's Next
      6. Reviewing It
      7. Checking It
      8. Applying It
    7. Introduction to Debugging and Exception Handling
      1. Preparing to Debug a Program
      2. Stepping through Code
      3. Structured Exception Handling (SEH)
      4. Unstructured Exception Handling
      5. What's Next
      6. Reviewing It
      7. Checking It
      8. Applying It
    8. Microsoft .NET Framework—Assemblies and Namespaces
      1. Software Development Life Cycle
      2. Assemblies
      3. Namespaces
      4. Useful Namespaces
      5. What's Next
      6. Reviewing It
      7. Checking It
      8. Applying It
  8. Working with Objects
    1. Objects and Classes—Introduction to Object-Oriented Programming
      1. Introduction to Objects and Classes
      2. Defining a Class in Visual Basic .NET
      3. Class Fields
      4. Class Constructors
      5. What's Next
      6. Reviewing It
      7. Checking It
      8. Applying It
    2. Properties
      1. What Are Properties?
      2. The Property Statement
      3. Using Properties
      4. Parameterized Properties
      5. Fields and Properties
      6. What's Next
      7. Reviewing It
      8. Checking It
      9. Applying It
    3. Methods
      1. Class Methods Defined
      2. Method Overloading
      3. Using Methods
      4. What's Next
      5. Reviewing It
      6. Checking It
      7. Applying It
    4. Shared Class Members
      1. Shared Members Definition
      2. Shared Methods
      3. Hints and Tips Regarding Shared Members
      4. What's Next
      5. Reviewing It
      6. Checking It
      7. Applying It
    5. Inheritance
      1. What Is Inheritance?
      2. Simple Inheritance
      3. Implications of Inheritance
      4. Multi-level Inheritance
      5. Polymorphism
      6. Abstract Classes
      7. Inheritance in the .NET Framework
      8. What's Next
      9. Reviewing It
      10. Checking It
      11. Applying It
    6. Interfaces
      1. What Is an Interface?
      2. Using Interfaces
      3. Interface Inheritance
      4. Interfaces in the .NET Framework
      5. What's Next
      6. Reviewing It
      7. Checking It
      8. Applying It
    7. Collections
      1. Collections Basics
      2. ArrayList
      3. Hashtable
      4. SortedList
      5. Queue and Stack
      6. NamedObjectCollectionBase—Making Your Own Collections
      7. Tips and Hints on Using Collections
      8. What's Next
      9. Reviewing It
      10. Checking It
      11. Applying It
    8. Advanced OO Concepts
      1. Relations
      2. Object Persistence
      3. Development Methodologies
      4. What's Next
      5. Reviewing It
      6. Checking It
      7. Applying It
  9. Working with Forms and Controls
    1. Programming the User Interface—Fundamental Concepts
      1. Introduction
      2. Proper Partitioning of Your Application Code
      3. Single Document Interface versus Multiple Document Interface
      4. Controls
      5. Menus
      6. Events
      7. Multilanguage Support
      8. Supporting the Keyboard and Mouse
      9. Fonts and Colors
      10. What's Next
      11. Reviewing It
      12. Checking It
      13. Applying It
    2. Forms
      1. Introduction
      2. Size and Position
      3. Color and Background
      4. Border Styles
      5. Forms Designer
      6. Docking and Anchoring
      7. Events
      8. Scrolling
      9. Message Boxes
      10. Dialog Boxes
      11. Single Document Interface and Multiple Document Interface
      12. What's Next
      13. Reviewing It
      14. Checking It
      15. Applying It
    3. Controls
      1. Introduction
      2. Control Class
      3. Working with Controls
      4. Examples Using Common Controls in .NET
      5. Creating Your Own Controls
      6. What's Next
      7. Reviewing It
      8. Checking It
      9. Applying It
    4. Menus
      1. Introduction
      2. Menus and Menu Items
      3. Menu Items and Event Handlers
      4. Menu Separators and Breaks
      5. Enabling, Disabling, and Visibility
      6. Mnemonics and Shortcuts
      7. Checked Menu Items
      8. Radio Buttons on Menus
      9. Nested Menus
      10. Dynamic Menus
      11. Context Menus
      12. Owner Drawn Menu Items
      13. SDI, MDI, and Menus
      14. What's Next
      15. Reviewing It
      16. Checking It
      17. Applying It
    5. Program Flow Control in the User Interface
      1. Application Startup and Shutdown
      2. Form Initialization and Termination
      3. Form Closing
      4. Event-Driven Programming
      5. What's Next
      6. Reviewing It
      7. Checking It
      8. Applying It
    6. Graphics Programming
      1. Introduction to Graphics in .NET
      2. Text
      3. Fonts
      4. Page Units
      5. Location and Sizing
      6. String Alignment and Wrapping
      7. Pens, Lines, and Rectangles
      8. Polygons
      9. Arcs and Ellipses
      10. Open and Closed Curves
      11. Images and Icons
      12. Filling
      13. Clipping
      14. Advanced Features
      15. What's Next
      16. Reviewing It
      17. Checking It
      18. Applying It
    7. Printing
      1. Introduction to Printing in .NET
      2. Printing a Form
      3. PrintPage Event and PrintPageEventArgs
      4. Printing Multiple Pages
      5. Print Preview
      6. Creating a Custom PrintDocument Class
      7. What's Next
      8. Reviewing It
      9. Checking It
      10. Applying It
    8. Developing a Help System for the User Interface
      1. Introduction to Help in .NET
      2. Help Class
      3. HelpProvider Component
      4. Context-Sensitive Help
      5. Pop-up Help
      6. ToolTips
      7. What's Next
      8. Reviewing It
      9. Checking It
      10. Applying It
  10. Manipulating Data with ADO.NET and XML
    1. Introducing Database Access with ADO.NET
      1. Database Basics
      2. The .NET Framework Data Namespaces
      3. .NET Data Providers
      4. Server Explorer
      5. What's Next
      6. Reviewing It
      7. Checking It
      8. Applying It
    2. DataSets
      1. Using a DataSet to Read and Modify Data
      2. Sorting and Filtering DataSets
      3. Binding a DataSet to a Control
      4. Multi-Table DataSets and Relations
      5. Typed and Untyped DataSets
      6. What's Next
      7. Reviewing It
      8. Checking It
      9. Applying It
    3. SQL Commands
      1. SQL Primer
      2. Using SqlCommands and SqlParameters
      3. What's Next
      4. Reviewing It
      5. Checking It
      6. Applying It
    4. XML Data Access
      1. Exposing XML and XML Schema from a DataSet
      2. Writing XML and XML Schema from a DataSet
      3. Reading XML and XML Schema into a DataSet
      4. Synchronizing XML and DataSets
      5. What's Next
      6. Reviewing It
      7. Checking It
      8. Applying It
    5. Reading XML
      1. Overview
      2. Loading the XML Document
      3. Traversing XML
      4. Finding Specific Nodes and Elements
      5. Reading the Content
      6. What's Next
      7. Reviewing It
      8. Checking It
      9. Applying It
    6. Generating an XML Document
      1. Creating Elements and Attributes
      2. Creating Comments
      3. Creating Text
      4. Writing Nodes
      5. Saving XML Documents
      6. XSL Transformations
      7. What's Next
      8. Reviewing It
      9. Checking It
      10. Applying It
  11. Developing for the Web
    1. Introduction to Web Forms
      1. Fundamental Concepts
      2. The First Web Application
      3. Web Form Properties and Methods
      4. Controls Used on Web Forms
      5. The Event Model of a Web Form
      6. What's Next
      7. Reviewing It
      8. Checking It
      9. Applying It
    2. Developing Applications for the Web
      1. Data Access Using Data Bound Controls
      2. State Management
      3. Developing Web User Controls
      4. What's Next
      5. Reviewing It
      6. Checking It
      7. Applying It
    3. Web Services
      1. Introduction to Web Services
      2. Example of Developing a Web Service
      3. Attributes as a Language Extension Mechanism
      4. Using the Web Services in a Client Application
      5. What's Next
      6. Reviewing It
      7. Checking It
      8. Applying It
  12. Appendix
    1. UML Crash Course
      1. Brief Introduction to Modeling and Design
      2. Classes, Attributes, and Operations
      3. Relationships

Product information

  • Title: Visual Basic® .NET by Example
  • Author(s): Gabriel Oancea, Bob Donald
  • Release date: December 2001
  • Publisher(s): Que
  • ISBN: 9780789725837