Training
Certifications
Books
Special Offers
Community




 
Faster Smarter Beginning Programming
Author Jim Buyens
Pages 352
Disk N/A
Level Beginner
Published 11/13/2002
ISBN 9780735617803
Price $19.99
To see this book's discounted price, select a reseller below.
 

More Information

About the Book
Table of Contents
Sample Chapter
Index
Related Series
About the Author

Support: Book & CD

Rate this book
Barnes Noble Amazon Quantum Books

 

Table of Contents


Acknowledgmentsxi
Introductionxiii
CHAPTER 1:   Introducing Basic Concepts1
    How Program Code and Data Occupy Memory2
    Appreciating Data Types4
    High-Level Languages5
    The Concept of Layered Software7
    Structured Programming Constructs9
    Top-Down Design15
    Subroutines and Functions17
    Processing Events19
    Classes and Objects20
    Key Points21
CHAPTER 2:   Introducing Microsoft Visual Basic .NET23
    Preparing Your System24
        Preparing for .NET Windows Applications24
        Preparing for .NET Web Applications25
        Sizing Your Computer26
    Obtaining Visual Basic .NET26
    Installing Visual Basic .NET27
    Easing into Visual Basic .NET29
    Manipulating Visual Studio Windows33
    Help, More Help, and Beyond Help34
    Understanding Visual Basic .NET Syntax36
    Writing and Running Your First Program39
    Key Points48
CHAPTER 3:   Using Elementary Statements51
    Using Data Types52
    Using Literals53
    Using Variables54
    Using Constants56
    Option Explicit and Option Strict58
    Working with Arrays60
    Scoping Out Variables62
    Writing Decision Statements63
    Writing Loops65
        Coding Loops with Do.Loop Statements65
        Coding Loops with For.Next Statements66
        Coding Loops with While.End While Statements68
    Example: Writing a Tape Calculator68
    Key Points75
CHAPTER 4:   Using Operators and Expressions77
    Introducing Operators78
    Forming Expressions78
    Using Arithmetic Operators80
        Converting Numeric Types81
    Using Assignment Operators82
        Using Compound Operators83
        Understanding Type Conversion83
        Assigning Reference Variables85
    Using Comparison Operators88
        Comparing Numbers88
        Comparing Strings89
        Using the Like Operator 90
    Getting It Together with Concatenation Operators92
    Using Logical Operators92
        Using Short-Circuited Operators93
    Using Bitwise Operators94
    Using Miscellaneous Operators95
    Testing Operators and Expressions95
    Key Points99
CHAPTER 5:   Using Functions and Subroutines101
    Introducing Functions and Subroutines101
    Coding Your Own Functions and Subroutines102
    Declaring Arguments103
    Passing Arguments by Value104
    Passing Arguments by Reference106
    Sidestepping Arguments108
    Specifying Return Values109
    Exiting Functions and Subroutines112
    Functions, Subroutines, Variables, and Scope112
    Designing Functions and Subroutines Effectively114
    Example: Writing a Four-Function Calculator114
    Key Points118
CHAPTER 6:   Using Built-In Functions119
    Finding Built-In Functions119
    Using Type Conversion Functions124
    Logical Functions124
    Manipulating Dates126
    Manipulating Strings129
    Using Array Functions132
    Generating Random Numbers133
    Example: Shuffling Cards134
        Initialize the Deck134
        Shuffle the Cards138
    Key Points142
CHAPTER 7:   Creating Classes and Objects143
    The Deal with Objects144
        A Touch of Class144
        Scrupulous Methods144
        Desirable Properties145
        Matters of Scope146
        Creating Objects from Classes147
    Example 1: Shuffling with Class148
    Construction and Destruction151
    Using Property Procedures153
    Using Structures156
    Trying Times and Exceptional Results157
    Example 2: Shuffling with Property Procedures160
        Form1.vb163
        Deck.vb164
    Key Points165
CHAPTER 8:   Using Classes, Modules, and Forms167
    Using .NET Framework Classes168
        Finding .NET Methods and Classes168
        Referencing Namespaces172
        Importing Namespaces173
    Making the Most of Objects and Classes174
        Inheritance (and Not from Uncle Otto)174
        Overloading and Polymorphism175
        Events (i.e., Getting a Raise)177
    Using Forms180
    Using Modules183
    Example: Dealing Cards183
        Creating the Main Form184
        Displaying the Player Forms185
        Moving the Player Forms188
        Declaring a Deck of Cards189
        Dealing the Cards190
        Ending the Game192
        Playing a Card193
    Key Points200
CHAPTER 9:   Designing and Using Windows Forms201
    Designing User Interfaces202
    Setting Form and Control Properties204
    Using Message Boxes206
    Finding and Creating Icons208
    Example: Creating a Picture Viewer209
        Creating the Picture Viewer Form209
        Creating the Picture Viewer Icons211
        Configuring the Form and Toolbar Icons213
        Specifying Assembly Information216
        Responding to File Exit and Help About Events218
        Displaying a Picture File219
        Copying a Picture to the Clipboard224
        Displaying a Picture from the Clipboard225
        Making the Toolbar Buttons Work225
    Key Points229
CHAPTER 10:   Interacting with Windows Form Controls231
    Form Control Categories232
    Adding and Arranging Form Controls234
    Working with Control Properties236
        Achieving Positions of Control236
        Oohs, Ahs, and Size236
        Amazing Disappearing Form Control Tricks237
        Tabs, Tab Orders, and TabIndex (But No Tab Dancing)238
    Working With Text Boxes, Check Boxes, and Radio Buttons239
    Working with List Boxes239
        Coping with Single-Selection List Boxes241
        Coping with Multiple-Selection ListBoxes242
        Adding and Removing ListBox Entries From Code243
    Responding to Windows Form Control Events244
        Staging Keyboard Events245
        Snapshotting Focus Events249
        Listening for Click Events251
        Reacting to Mouse Events252
    Example: Reporting Crocodiles254
        Creating the Crocodile Form255
        Validating the Input Fields259
        Writing the Output Record 265
    Key Points274
CHAPTER 11:   Accessing Databases275
    SQL Concepts and Syntax278
        Retrieving Data with the SELECT Statement278
        Coding the SELECT Clause279
        Coding the FROM Clause280
        Coding the WHERE Clause280
        Coding the GROUP BY Clause281
        Coding the HAVING Clause281
        Coding the ORDER BY Clause281
        Adding Data with the INSERT Statement281
        Changing Data with the UPDATE Statement 282
        Removing Data with the DELETE Statement283
    Introducing ADO.NET283
        Opening and Closing ADO.NET Connections284
        Using Command Objects287
        Using Data Readers289
        Using the DataAdapter, DataSet, and DataTable Objects290
    Displaying and Updating a Database294
    Key Points300
CHAPTER 12:   Programming Web Forms301
    Introducing the Web302
    Creating Web Projects303
    Examining a New ASP.NET Web Application305
    Designing Web Forms307
    The Life Cycle of an ASP.NET Page309
    Adding Controls to a Web Form311
        Using HTML Server Controls311
        Using Web Server Controls313
    Responding to Web Form Events314
    Exchanging Data with the Web Visitor316
    Testing Your Web Project317
    Example: Date Evaluator319
        Creating a Visual Web Page Design319
        Add the Code Behind the Date Evaluator Web Page321
    Key Points323
INDEX325



Last Updated: October 29, 2002
Top of Page