Microsoft Visual Basic .Net Deluxe Learning Edition : Version 2003 : Step by Step (PAP/CDR)

Microsoft Visual Basic .Net Deluxe Learning Edition : Version 2003 : Step by Step (PAP/CDR)

  • ただいまウェブストアではご注文を受け付けておりません。 ⇒古書を探す
  • 製本 Paperback:紙装版/ペーパーバック版
  • 言語 ENG,ENG
  • 商品コード 9780735619067
  • DDC分類 005

Full Description


Get on the fast track to professional application development with Visual Basic .NET 2003. This practical, hands-on tutorial expertly guides you through the fundamentals-using step-by-step exercises, code samples, optimization tips, and real-world advice to accelerate your productivity. Work at your own pace, learning core programming skills by selecting just the chapters and lessons you need. Upgrade your Visual Basic 6 applications quickly with the help of "Upgrade Notes" sidebars, a special upgrading index, and insights into the enhanced Visual Basic .NET Upgrade Wizard. It's everything you need to start creating .NET-connected software now! Discover how to: Create a compelling user interface with Toolbox controls, menus, and dialog boxes Use methods in the .NET Framework 1.1 class libraries Utilize the new debugging tools and structured error handlers to build robust code Manage data in your programs using collections, arrays, and string processing techniques Automate Microsoft Office applications and manage processes Manage Windows Forms and create graphics and animation effects Use inheritance and other new object-oriented programming capabilities Write custom code for printers and dialog boxes for printing Manage Microsoft Access databases and create custom database applications with Microsoft ADO.NET Display HTML documents using Microsoft Internet Explorer Use Web Forms to build Internet interfaces Deploy Visual Basic .NET applications Port Visual Basic 6 programs to Visual Basic .NET CD features: Code examples in Visual Basic .NET 2003 All the book's practice files Fully searchable eBook

Table of Contents

Acknowledgments                                    xi
Introduction xiii
Part 1 Getting Started with Microsoft Visual
Basic .NET 2003
Opening and Running a Visual Basic .NET 3 (30)
2003 Program
The Visual Studio .NET Development 5 (5)
Environment
The Visual Studio .NET Tools 10 (6)
The Windows Forms Designer 12 (2)
Running a Visual Basic Program 14 (2)
The Properties Window 16 (4)
Moving and Resizing the Programming Tools 20 (7)
Moving and Resizing Tool Windows in 21 (2)
Visual Studio
Docking a Tool in Visual Studio 23 (2)
Hiding a Tool in Visual Studio 25 (2)
Getting Help 27 (3)
One Step Further: Exiting Visual Studio 30 (3)
.NET
Writing Your First Program 33 (30)
Lucky Seven: Your First Visual Basic .NET 34 (1)
Program
Programming Steps 35 (1)
Creating the User Interface 35 (7)
Setting the Properties 42 (7)
The Picture Box Properties 47 (2)
Writing the Code 49 (7)
A Look at the Button1_Click Procedure 54 (2)
Running Visual Basic .NET Applications 56 (2)
Building an Executable File 58 (2)
One Step Further: Adding to a Program 60 (3)
Working with Toolbox Controls 63 (32)
The Basic Use of Controls: The ``Hello 64 (6)
World'' Program
Using the DateTimePicker Control 70 (7)
The Birthday Program 70 (7)
Controls for Gathering Input 77 (9)
The Input Controls Demo 80 (3)
Looking at the Input Controls Program 83 (3)
Code
Using the LinkLabel Control 86 (5)
One Step Further: Installing ActiveX 91 (4)
Controls
The Microsoft Chart Control 91 (4)
Working with Menus and Dialog Boxes 95 (30)
Adding Menus Using the MainMenu Control 96 (2)
Adding Access Keys to Menu Commands 98 (3)
Processing Menu Choices 101 (5)
Using Dialog Box Controls 106 (5)
Changing the Object Names for Items on 109 (1)
the File Menu
Disabling a Menu Command 110 (1)
Event Procedures That Manage Common 111 (7)
Dialog Boxes
One Step Further: Assigning Shortcut Keys 118 (7)
to Menus
Part 2 Programming Fundamentals
Visual Basic .NET Variables and Operators 125 (36)
The Anatomy of a Visual Basic Program 127 (1)
Statement
Using Variables to Store Information 127 (2)
Setting Aside Space for Variables: The 128 (1)
Dim Statement
Using Variables in a Program 129 (4)
Using a Variable to Store Input 133 (3)
Using a Variable for Output 136 (2)
Working with Specific Data Types 138 (8)
Constants: Variables That Don't Change 144 (2)
Working with Visual Basic Operators 146 (9)
Basic Math: The +, --, *, and / 146 (4)
Operators
Using Advanced Operators: \, Mod, ^, 150 (5)
and &
Working with Math Methods in the .NET 155 (2)
Framework
Operator Precedence 157 (1)
One Step Further: Using Parentheses in a 158 (3)
Formula
Using Decision Structures 161 (24)
Event-Driven Programming 162 (2)
Using Conditional Expressions 164 (1)
If...Then Decision Structures 165 (9)
Testing Several Conditions in an 165 (5)
If...Then Decision Structure
Using Logical Operators in Conditional 170 (2)
Expressions
Short-Circuiting by Using AndAlso and 172 (2)
OrElse
Select Case Decision Structures 174 (6)
Using Comparison Operators with a 176 (4)
Select Case Structure
One Step Further: Detecting Mouse Events 180 (5)
Using Loops and Timers 185 (24)
Writing For...Next Loops 186 (10)
Displaying a Counter Variable in a 187 (3)
TextBox Control
Creating Complex For...Next Loops 190 (3)
Opening Files Using a Counter That Has 193 (3)
Greater Scope
Writing Do Loops 196 (5)
Avoiding an Endless Loop 197 (4)
The Timer Control 201 (3)
Creating a Digital Clock Using a Timer 201 (3)
Control
One Step Further: Using a Timer Object to 204 (5)
Set a Time Limit
Debugging Visual Basic .NET Programs 209 (16)
Finding and Correcting Errors 210 (2)
Three Types of Errors 210 (2)
Identifying Logic Errors 212 (1)
Debugging 101: Using Break Mode 212 (6)
Tracking Variables by Using a Watch Window 218 (2)
Using the Command Window 220 (3)
Switching to Command Mode in the 222 (1)
Command Window
One Step Further: Removing Breakpoints 223 (2)
Trapping Errors Using Structured Error 225 (24)
Handling
Processing Errors Using Try...Catch 226 (5)
When to Use Error Handlers 227 (1)
Setting the Trap: The Try...Catch 228 (1)
Statement
Path and Disk Drive Errors 228 (3)
Writing a Disk Drive Error Handler 231 (3)
Using the Finally Clause to Perform 232 (2)
Cleanup Tasks
More Complex Try...Catch Error Handlers 234 (7)
The Err Object 234 (4)
Specifying a Retry Period 238 (3)
Using Nested Try...Catch Blocks 241 (1)
Comparing Error Handlers with Defensive 241 (1)
Programming Techniques
One Step Further: The Exit Try Statement 242 (7)
Part 3 Managing Corporate Data
Using Modules and Procedures 249 (28)
Working with Standard Modules 251 (3)
Creating a Standard Module 251 (3)
Working with Public Variables 254 (5)
Creating Procedures 259 (1)
Writing Function Procedures 260 (6)
Function Syntax 260 (2)
Calling a Function Procedure 262 (1)
Using a Function to Perform a 262 (4)
Calculation
Writing Sub Procedures 266 (7)
Sub Procedure Syntax 266 (1)
Calling a Sub Procedure 267 (1)
Using a Sub Procedure to Manage Input 268 (5)
One Step Further: Passing Arguments by 273 (4)
Value and by Reference
Which to Use: ByVal or ByRef? 274 (3)
Using Arrays and Collections to Manage Data 277 (30)
Working with Arrays of Variables 278 (11)
Creating an Array 279 (1)
Declaring a Fixed-Size Array 280 (1)
Working with Array Elements 281 (1)
Creating a Fixed-Size Array to Hold 282 (4)
Temperatures
Creating a Dynamic Array 286 (3)
Preserving Array Contents by Using ReDim 289 (2)
Preserve
Working with Object Collections 291 (7)
Referencing Objects in a Collection 292 (1)
Writing For Each...Next Loops 292 (1)
Experimenting with Objects in the 293 (3)
Controls Collection
Using the Name Property in a For 296 (2)
Each...Next Loop
Creating Your Own Collections 298 (4)
One Step Further: Visual Basic for 302 (5)
Applications Collections
Exploring Text Files and String Processing 307 (34)
Displaying Text Files by Using a Text Box 308 (7)
Object
Opening a Text File for Input 309 (1)
The FileOpen Function 309 (6)
Creating a New Text File on Disk 315 (4)
Processing Text Strings with Program Code 319 (10)
Processing Strings by Using Methods and 319 (2)
Keywords
Sorting Text 321 (1)
Working with ASCII Codes 322 (1)
Sorting Strings in a Text Box 323 (6)
Protecting Text with Encryption 329 (4)
One Step Further: Using the Xor Operator 333 (8)
Examining the Encryption Code 335 (6)
Automating Microsoft Office Applications 341 (20)
and Managing Processes
Programming Application Objects by Using 342 (6)
Automation
Using Automation in Visual Basic 343 (1)
The Visual Studio Object Browser 344 (4)
Automating Excel from Visual Basic 348 (8)
One Step Further: Starting and Stopping 356 (5)
Windows Applications by Using the Process
Component
Deploying Visual Basic .NET Applications 361 (32)
Planning a Deployment 362 (3)
Different Ways to Deploy an Application 364 (1)
Creating a Deployment Project 365 (10)
Customizing Your Deployment Options 375 (6)
Building a Deployment Project and Testing 381 (5)
Setup
One Step Further: Examining Setup Files 386 (7)
and Uninstalling
Part 4 Advanced User Interface Design
Managing Windows Forms 393 (28)
Adding New Forms to a Program 394 (2)
How Forms Are Used 395 (1)
Working with Multiple Forms 396 (7)
Positioning Forms on the Windows Desktop 403 (6)
Minimizing, Maximizing, and Restoring 408 (1)
Windows
Adding Controls to a Form at Runtime 409 (3)
Organizing Controls on a Form 412 (3)
One Step Further: Specifying the Startup 415 (6)
Object
Adding Graphics and Animation Effects 421 (18)
Adding Artwork by Using the 422 (5)
System.Drawing Namespace
Using a Form's Coordinate System 423 (1)
The System.Drawing.Graphics Class 424 (1)
Using the Form's Paint Event 425 (2)
Adding Animation to Your Programs 427 (7)
Moving Objects on the Form 428 (1)
The Location Property 429 (1)
Creating Animation by Using a Timer 430 (4)
Object
Expanding and Shrinking Objects While a 434 (2)
Program Is Running
One Step Further: Changing Form 436 (3)
Transparency
Inheriting Forms and Creating Base Classes 439 (20)
Inheriting a Form by Using the 440 (5)
Inheritance Picker
Creating Your Own Base Classes 445 (8)
Adding a New Class to Your Project 446 (7)
One Step Further: Inheriting a Base Class 453 (6)
Working with Printers 459 (28)
Using the PrintDocument Class 460 (9)
Printing Text from a Text Box Object 465 (4)
Printing Multipage Text Files 469 (7)
One Step Further: Adding Print Preview 476 (11)
and Page Setup Dialog Boxes
Part 5 Database Programming
Getting Started with ADO.NET 487 (26)
Database Programming with ADO.NET 488 (13)
Database Terminology 489 (1)
Working with an Access Database 490 (4)
Creating a Data Adapter 494 (5)
Working with Datasets 499 (2)
Using Bound Controls to Display Database 501 (4)
Information on a Form
Creating Navigation Controls 505 (4)
One Step Further: Displaying the Current 509 (4)
Record Position
Data Presentation Using the DataGrid Control 513 (18)
Using DataGrid to Display Database Records 514 (9)
Formatting DataGrid Cells 523 (2)
One Step Further: Updating the Original 525 (6)
Database
Part 6 Internet Programming
Displaying HTML Documents Using Internet 531 (14)
Explorer
Getting Started with the Internet 532 (5)
Explorer Object
Adding the Microsoft Internet Controls 533 (1)
Reference to Your Application
Investigating the Internet Explorer 534 (3)
Object Model
Displaying HTML Documents 537 (4)
One Step Further: Responding to Internet 541 (4)
Explorer Events
Using Web Forms to Build Interactive Web 545 (46)
Applications
Inside ASP.NET 546 (4)
Web Forms vs. Windows Forms 547 (1)
HTML Controls 548 (1)
Web Forms Controls 549 (1)
Getting Started with a Web Application 550 (6)
Installing the Software for ASP.NET 550 (6)
Programming
Using the Web Forms Designer 556 (3)
Adding Web Forms Controls to a Web 559 (6)
Application
Writing Event Procedures for Web Forms 561 (4)
Controls
One Step Further: Creating a Link to 565 (8)
Another Web Page
Part 7 Appendixes
Appendix A Upgrading Visual Basic 6 573 (14)
Programs to Visual Basic .NET 2003
Assessing Visual Basic 6 Programs for 574 (1)
Compatibility
Problematic Issues 575 (1)
Internet Resources for Migration 576 (1)
Upgrade Steps 577 (1)
Running the Visual Basic Upgrade Wizard 577 (10)
Appendix B Where to Go for More 587 (4)
Information
Visual Basic .NET Web Sites 587 (1)
http://msdn.microsoft.com/vbasic/ 588 (1)
http://www.devx.com/ 588 (1)
http://www.microsoft.com/mspress/ 588 (1)
http://www.microsoft.com/traincert/ 588 (1)
http://communities2.microsoft.com/home/ 589 (1)
Books for Visual Basic .NET Programming 589 (1)
Visual Basic .NET Programming 589 (1)
Web Programming with ASP.NET 590 (1)
Database Programming with ADO.NET 590 (1)
Visual Basic for Applications 590 (1)
Programming
Upgrading Index 591 (6)
Index 597