MICROSOFT VISUAL BASIC 6.0 PROFESSIONAL STEP BY STEP 2ND ED.
Ouvrage 0-7356-1883-6 : MICROSOFT VISUAL BASIC 6.0 PROFESSIONAL STEP BY STEP 2ND ED.
This information-packed STEP BY STEP course_based on the best-selling
first edition_is the easiest, fastest way to teach yourself how to write
32-bit Microsoft© Windows©-based programs with Visual Basic©. Work
through every lesson to complete the full course, or do just the lessons
you want to learn exactly the skills you need. Either way, you receive
professional Visual Basic 6.0 training at your own pace, with real-world
examples and practice files to help you master core programming skills.
Topics covered include:
Getting Started with Visual Basic: Opening and running a Visual Basic
program, writing your first program, and working with controls, menus,
and dialog boxes
Programming fundamentals: Working with Visual Basic variables and
operators and using decision structures, loops, and timers
Creating the perfect user interface: Working with forms, printers, and
error handlers and adding artwork and special effects
Managing corporate data: Using modules and procedures, exploring text
files and processing strings, managing Microsoft Access databases, and
connecting to Microsoft Office
Visual Basic 6.0 Professional Edition tools and techniques: Word
processing with the Rich TextBox control, displaying progress and status
information, using the Multimedia MCI control, and using the Windows API
Web programming fundamentals: Downloading files with the Internet
Transfer control, displaying HTML documents with Internet Explorer,
designing Dynamic HTML (DHTML) pages, and adding Toolbox elements and
ActiveX© Controls to DHTML pages
Advanced database programming: Managing data with the FlexGrid control
and exploring ActiveX Data Objects (ADO)
Upgrade notes: What's new and improved in Visual Basic .NET and how to
plan an upgrade
Table of Contents
QuickLook Guide xiii
Finding Your Best Starting Point xvii
Installing and Using the Practice Files xxiii
Conventions and Features in This Book xxxi
Visual Basic 6 vs. Visual Basic .NET xxxv
Installing Visual Studio 6 Service Packs xxxix
PART 1 GETTING STARTED WITH VISUAL BASIC 1
LESSON 1 Opening and Running a Visual Basic Program 3
The Visual Basic Programming Environment 4 ( The User Interface Form 10
The Toolbox 10 The Properties Window 11 The Project Window 13
Getting Help 15 One Step Further: Exiting Visual Basic 18 Upgrade
Notes: What's Different in Visual .Basic .NET? 18 Lesson 1 Quick
Reference 20
LESSON 2 Writing Your First Program 23
Lucky Seven: Your First Visual Basic Program 24 Programming Steps 24
Creating the User Interface 25 Setting the Properties 31 Writing the
Code 37 Saving the Program 44 Building an Executable File 46 One
Step Further: Adding to a Program 50 Using the Package Deployment
Wizard 48 Upgrade Notes: What's Different in Visual Basic .NET? 52
Lesson 2 Quick Reference 53
LESSON 3 Working with Controls 55
The Basic Use of Controls: The "Hello World" Program 56 Using File
System Objects 60 Objects for Gathering Input 67 Using an OLE Object
to Launch Applications 74 Using a Data Object to View a Microsoft
Access Database 80 Modifying a Database 84 One Step Further:
Installing ActiveX Controls 85 Upgrade Notes: What's Different in
Visual Basic .NET? 88 Lesson 3 Quick Reference 89
LESSON 4 Working with Menus and Dialog Boxes 91
Adding Menus by Using the Menu Editor 92 Processing Menu Choices 98
Using Common Dialog Objects 103 Event Procedures That Manage Common
Dialog Boxes 109 One Step Further: .Assigning Shortcut Keys to Menus
117 Upgrade Notes: What's Different in Visual Basic .NET? 119 Lesson
4 Quick Reference 120
PART 2 PROGRAMMING FUNDAMENTALS 121
LESSON 5 Visual Basic Variables and Operators 123
The Anatomy of a Visual Basic Program Statement 124 Using Variables to
Store Information 124 Using a Variable to Store .Input 130 Using a
Variable for Output 133 Working with Specific Data Types 135 Working
with Visual Basic Operators 141 One Step Further: Using Parentheses in
a Formula 150 Upgrade Notes: What's Different in Visual Basic .NET?
150 Lesson 5 Quick Reference 152
LESSON 6 Using Decision Structures 155
Event-Driven Programming 155 Using Conditional Expressions 157
If_Then Decision Structures 159 Select Case Decision Structures 166
Finding and Correcting Errors 171 One Step Further: Using a Stop
Statement to Enter Break Mode 179 Upgrade Notes: What's Different in
Visual Basic .NET? 180 Lesson 6 Quick Reference 181
LESSON 7 Using Loops and Timers 183
Writing For_Next Loops 184 Writing Do Loops 196 Using Timer Objects
200 One Step Further: Using a Timer Object to Set a Time Limit 203
Upgrade Notes: What's Different in Visual Basic .NET? 207 Lesson 7
Quick Reference 208
PART 3 CREATING THE PERFECT USER INTERFACE 211
LESSON 8 Working with Forms, Printers, and Error Handlers 213
Adding New Forms to a Program 213 Form Statements in Pro- gram Code
215 Working with Multiple Forms: The Italian Program 217 Sending
Program Output to a Printer 223 Printing an Entire Form by Using the
PrintForm Method 228 Processing Errors by Using Error Handlers 230
One Step Further: More Techniques for Error Handlers 235 Upgrade
Notes: What's Different in Visual Basic .NET? 237 Lesson 8 Quick
Reference 239
LESSON 9 Adding Artwork and Special Effects 241
Adding Artwork by Using the Line and Shape Controls 242 Creating
Graphical Command Buttons 247 Adding Drag-and-Drop Support to Your
Programs 256 Adding Animation to Your Programs 264 One Step Further:
Naming Objects in a Program 273 Upgrade Notes: What's Different in
Visual Basic .NET? 280 Lesson 9 Quick Reference 281
PART 4 MANAGING CORPORATE DATA 283
LESSON 10 Using Modules and Procedures 285
Working with Standard Modules 286 Working with Public Variables 289
Creating General-Purpose Procedures 294 Writing Function Procedures
296 Writing Sub Procedures 302 One Step Further: Passing Arguments
by Value 309 Upgrade Notes: What's Different in Visual Basic .NET? 311
Lesson 10 Quick Reference 312
LESSON 11 Working with Collections and Arrays 315
Working with Object Collections 315 Working with Arrays of Variables
323 One Step Further: Using Multidimensional Arrays 335 Upgrade
Notes: What's Different in Visual Basic .NET? 338 Lesson 11 Quick
Reference 339
LESSON 12 Exploring Text Files and String Processing 341
Displaying Text Files by Using a Text Box Object 341 Creating a New
Text File on Disk 347 Processing Text Strings with Program Code 352
One Step Further: Using the Xor Operator 363 Upgrade Notes: What's
Different in Visual Basic .NET? 367 Lesson 12 Quick Reference 368
LESSON 13 Managing Access Databases 371
Working with Databases in Visual Basic 372 Using a Recordset Object
376 Adding Records to the Students.mdb Database 380 Deleting Records
from the Students.mdb Database 383 One Step Further: Making a Backup
Copy of a File 386 Upgrade Notes: What's Different in Visual Basic
.NET? 389 Lesson 13 Quick Reference 390
LESSON 14 Connecting to Microsoft Office 391
Programming Application Objects by Using Automation 391 Auto.mating
Excel from Visual Basic 396 Upgrade Notes: What's Different in Visual
Basic .NET? 404 Lesson 14 Quick Reference 405
PART 5 PROFESSIONAL EDITION TOOLS AND TECHNIQUES 407
LESSON 15 Word Processing with the Rich Textbox Control 409
Installing Professional Edition ActiveX Controls 410 Introducing the
Rich Textbox Control 413 Event Procedures that Handle RTF Formatting
418 Editing Text with the Windows Clipboard 420 Managing File
Operations with the Rich Textbox Control 421 One Step Further:
Displaying the RTF Codes in a Document 425 Upgrade Notes: What's
Different in Visual Basic .NET 427 Lesson 15 Quick Reference 428
LESSON 16 Displaying Progress and Status Information 431
Displaying Task Progress with the Progress Bar Control 432 The
Progress Program 434 Managing Input Graphically with the Slider
Control 437 Displaying Application Information with the Status Bar
Control 441 One Step Further: Displaying Caps Lock and Num Lock Status
446 Upgrade Notes: What's Different in Visual Basic .NET 447 Lesson
16 Quick Reference 448
LESSON 17 Integrating Music and Video with the Multimedia MCI Control
449
Playing Audio from .WAV Files 449 Playing Video from .AVI Files 454
One Step Further: Playing Music from Audio CDs 458 Upgrade Notes:
What's Different in Visual Basic .NET 462 Lesson 17 Quick Reference
462
LESSON 18 Beyond Visual Basic: Using the Windows API 463
Inside the Windows API 463 Using the API Viewer Utility 467
Monitoring Memory Usage on Your Computer 472 One Step .Further:
Terminate Your Programs with Unload 477 Upgrade Notes: What's
Different in Visual Basic .NET? 478 Lesson 18 Quick Reference 479
PART 6 INTERNET PROGRAMMING FUNDAMENTALS 481
LESSON 19 Downloading Files with the Internet Transfer Control 483
Downloading HTML Documents from the World Wide Web 484 Transferring
Files with FTP 492 One Step Further: Handling Errors During Internet
Transactions 498 Upgrade Notes: What's Different in Visual Basic .NET?
500 Lesson 19 Quick Reference 500
LESSON 20 Displaying HTML Documents with Internet Explorer 493
Getting Started with the Internet Explorer Object 494 Displaying HTML
Documents 498 One Step Further: Responding to Internet Explorer Events
503 Upgrade Notes: What's Different in Visual Basic .NET? 514 Lesson
20 Quick Reference 506
LESSON 21 Designing Dynamic HTML Pages for the Web 507
Inside Dynamic HTML 508 Getting Started with the DHTML Page Designer
510 One Step Further: Creating HTML Documents in Microsoft Word 524
Upgrade Notes: What's Different in Visual Basic .NET? 538 Lesson 21
Quick Reference 528
LESSON 22 Adding Toolbox Elements and ActiveX Controls to DHTML Pages
541
Getting Started with Toolbox Elements 541 Creating and Custom.izing
Elements 547 Adding ActiveX Controls to a DHTML Page 553 Creating
Event Procedures for DHTML Elements 555 OneStep Further: Compiling a
DHTML Application 562 Upgrade Notes: What's Different in Visual Basic
.NET? 564 Lesson 22 Quick Reference 564
PART 7 ADVANCED DATABASE PROGRAMMING 567
LESSON 23 Managing Data with the FlexGrid Control 569
Using FlexGrid as a General-Purpose Spreadsheet 570 Using FlexGrid to
Display Database Records 578 One Step Further: Searching the
Biblio.mdb Database 585 Upgrade Notes: What's Different in Visual
Basic .NET? 588 Lesson 23 Quick Reference 588
LESSON 24 Exploring ActiveX Data Objects 591
Inside ADO 591 Using the ADO ActiveX Control 593 Writing ADO Program
Code 601 Building ActiveX Data Objects with the Data Environment
Designer 607 One Step Further: Additional Resources for Visual Basic
Programming 611 Upgrade Notes: What's Different in Visual Basic .NET?
613 Lesson 24 Quick Reference 614
APPENDIX A Upgrading Visual Basic 6 Programs to Visual Basic .NET 617
APPENDIX B Where to Go for More Information 629
INDEX 635
Auteur : HALVORSON
Editeur : MICROSOFT PRESS
Nombre de pages : 720
Date de publication : 10 2002
Toute la sélection
Toutes les sélections
Toute la sélection
Site réalisé en partenariat avec Courbis
(alternate link), acteur de l'Internet depuis 1988...