Microsoft Visual Basic 6.0 Professional Step by Step

by
Edition: 2nd
Format: Paperback
Pub. Date: 2002-10-30
Publisher(s): Microsoft Press
List Price: $39.99

Rent Book

Select for Price
There was a problem. Please try again later.

New Book

We're Sorry
Sold Out

Used Book

We're Sorry
Sold Out

eBook

We're Sorry
Not Available

Summary

This information-packed STEP BY STEP coursebased on the best-selling first editionis the easiest, fastest way to teach yourself how to write 32-bit Microsoft Windowsbased 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

Author Biography

Michael Halvorson is the author or co-author of twenty computer books, including Microsoft Office XP Inside Out, Visual Basic 6 Professional Step By Step, Learn Microsoft Visual Basic 6 Now, Running Microsoft Office 2000 Premium Edition, and Microsoft Word 97/Visual Basic Step by Step. Michael earned a bachelor's degree in Computer Science from Pacific Lutheran University in Tacoma, Washington, and master’s and doctoral degrees in History from the University of Washington in Seattle, Washington. He was employed at Microsoft Corporation as a technical editor, acquisitions editor, and localization manager from 1985 to 1993. Michael currently spends his time developing innovative software solutions for Microsoft Office and Microsoft Visual Basic .NET, and teaching European history courses at colleges in the Pacific Northwest.

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(120)
Opening and Running a Visual Basic Program
3(20)
The Visual Basic Programming Environment
4(6)
The User Interface Form
10(1)
The Toolbox
10(1)
The Properties Window
11(2)
The Project Window
13(2)
Getting Help
15(3)
One Step Further: Exiting Visual Basic
18(1)
Upgrade Notes: What's Different in Visual Basic.NET?
18(2)
Lesson 1 Quick Reference
20(3)
Writing Your First Program
23(32)
Lucky Seven: Your First Visual Basic Program
24(1)
Programming Steps
24(1)
Creating the User Interface
25(6)
Setting the Properties
31(6)
Writing the Code
37(7)
Saving the Program
44(2)
Building an Executable File
46(4)
One Step Further: Adding to a Program
50
Using the Package Deployment Wizard
48(4)
Upgrade Notes: What's Different in Visual Basic.NET?
52(1)
Lesson 2 Quick Reference
53(2)
Working with Controls
55(36)
The Basic Use of Controls: The ``Hello World'' Program
56(4)
Using File System Objects
60(7)
Objects for Gathering Input
67(7)
Using an OLE Object to Launch Applications
74(6)
Using a Data Object to View a Microsoft Access Database
80(4)
Modifying a Database
84(1)
One Step Further: Installing ActiveX Controls
85(3)
Upgrade Notes: What's Different in Visual Basic.NET?
88(1)
Lesson 3 Quick Reference
89(2)
Working with Menus and Dialog Boxes
91(30)
Adding Menus by Using the Menu Editor
92(6)
Processing Menu Choices
98(5)
Using Common Dialog Objects
103(6)
Event Procedures That Manage Common Dialog Boxes
109(8)
One Step Further: Assigning Shortcut Keys to Menus
117(2)
Upgrade Notes: What's Different in Visual Basic.NET?
119(1)
Lesson 4 Quick Reference
120(1)
PART 2 Programming Fundamentals 121(90)
Visual Basic Variables and Operators
123(32)
The Anatomy of a Visual Basic Program Statement
124(1)
Using Variables to Store Information
124(6)
Using a Variable to Store Input
130(3)
Using a Variable for Output
133(2)
Working with Specific Data Types
135(6)
Working with Visual Basic Operators
141(9)
One Step Further: Using Parentheses in a Formula
150(1)
Upgrade Notes: What's Different in Visual Basic.NET?
150(2)
Lesson 5 Quick Reference
152(3)
Using Decision Structures
155(28)
Event-Driven Programming
155(2)
Using Conditional Expressions
157(2)
If...Then Decision Structures
159(7)
Select Case Decision Structures
166(5)
Finding and Correcting Errors
171(8)
One Step Further: Using a Stop Statement to Enter Break Mode
179(1)
Upgrade Notes: What's Different in Visual Basic.NET?
180(1)
Lesson 6 Quick Reference
181(2)
Using Loops and Timers
183(28)
Writing For...Next Loops
184(12)
Writing Do Loops
196(4)
Using Timer Objects
200(3)
One Step Further: Using a Timer Object to Set a Time Limit
203(4)
Upgrade Notes: What's Different in Visual Basic.NET?
207(1)
Lesson 7 Quick Reference
208(3)
PART 3 Creating the Perfect User Interface 211(72)
Working with Forms, Printers, and Error Handlers
213(28)
Adding New Forms to a Program
213(2)
Form Statements in Program Code
215(2)
Working with Multiple Forms: The Italian Program
217(6)
Sending Program Output to a Printer
223(5)
Printing an Entire Form by Using the PrintForm Method
228(2)
Processing Errors by Using Error Handlers
230(5)
One Step Further: More Techniques for Error Handlers
235(2)
Upgrade Notes: What's Different in Visual Basic.NET?
237(2)
Lesson 8 Quick Reference
239(2)
Adding Artwork and Special Effects
241(42)
Adding Artwork by Using the Line and Shape Controls
242(5)
Creating Graphical Command Buttons
247(9)
Adding Drag-and-Drop Support to Your Programs
256(8)
Adding Animation to Your Programs
264(9)
One Step Further: Naming Objects in a Program
273(7)
Upgrade Notes: What's Different in Visual Basic.NET?
280(1)
Lesson 9 Quick Reference
281(2)
PART 4 Managing Corporate Data 283(124)
Using Modules and Procedures
285(30)
Working with Standard Modules
286(3)
Working with Public Variables
289(5)
Creating General-Purpose Procedures
294(2)
Writing Function Procedures
296(6)
Writing Sub Procedures
302(7)
One Step Further: Passing Arguments by Value
309(2)
Upgrade Notes: What's Different in Visual Basic.NET?
311(1)
Lesson 10 Quick Reference
312(3)
Working with Collections and Arrays
315(26)
Working with Object Collections
315(8)
Working with Arrays of Variables
323(12)
One Step Further: Using Multidimensional Arrays
335(3)
Upgrade Notes: What's Different in Visual Basic.NET?
338(1)
Lesson 11 Quick Reference
339(2)
Exploring Text Files and String Processing
341(30)
Displaying Text Files by Using a Text Box Object
341(6)
Creating a New Text File on Disk
347(5)
Processing Text Strings with Program Code
352(11)
One Step Further: Using the Xor Operator
363(4)
Upgrade Notes: What's Different in Visual Basic.NET?
367(1)
Lesson 12 Quick Reference
368(3)
Managing Access Databases
371(20)
Working with Databases in Visual Basic
372(4)
Using a Recordset Object
376(4)
Adding Records to the Students.mdb Database
380(3)
Deleting Records from the Students.mdb Database
383(3)
One Step Further: Making a Backup Copy of a File
386(3)
Upgrade Notes: What's Different in Visual Basic.NET?
389(1)
Lesson 13 Quick Reference
390(1)
Connecting to Microsoft Office
391(16)
Programming Application Objects by Using Automation
391(5)
Automating Excel from Visual Basic
396(8)
Upgrade Notes: What's Different in Visual Basic.NET?
404(1)
Lesson 14 Quick Reference
405(2)
PART 5 Professional Edition Tools and Techniques 407(74)
Word Processing with the Rich Textbox Control
409(22)
Installing Professional Edition ActiveX Controls
410(3)
Introducing the Rich Textbox Control
413(5)
Event Procedures that Handle RTF Formatting
418(2)
Editing Text with the Windows Clipboard
420(1)
Managing File Operations with the Rich Textbox Control
421(4)
One Step Further: Displaying the RTF Codes in a Document
425(2)
Upgrade Notes: What's Different in Visual Basic.NET
427(1)
Lesson 15 Quick Reference
428(3)
Displaying Progress and Status Information
431(18)
Displaying Task Progress with the Progress Bar Control
432(2)
The Progress Program
434(3)
Managing Input Graphically with the Slider Control
437(4)
Displaying Application Information with the Status Bar Control
441(5)
One Step Further: Displaying Caps Lock and Num Lock Status
446(1)
Upgrade Notes: What's Different in Visual Basic.NET
447(1)
Lesson 16 Quick Reference
448(1)
Integrating Music and Video with the Multimedia MCI Control
449(14)
Playing Audio from. WAV Files
449(5)
Playing Video from.AVI Files
454(4)
One Step Further: Playing Music from Audio CDs
458(4)
Upgrade Notes: What's Different in Visual Basic.NET
462(1)
Lesson 17 Quick Reference
462(1)
Beyond Visual Basic: Using the Windows API
463(18)
Inside the Windows API
463(4)
Using the API Viewer Utility
467(5)
Monitoring Memory Usage on Your Computer
472(5)
One Step Further: Terminate Your Programs with Unload
477(1)
Upgrade Notes: What's Different in Visual Basic.NET?
478(1)
Lesson 18 Quick Reference
479(2)
PART 6 Internet Programming Fundamentals 481(86)
Downloading Files with the Internet Transfer Control
483(10)
Downloading HTML Documents from the World Wide Web
484(8)
Transferring Files with FTP
492(6)
One Step Further: Handling Errors During Internet Transactions
498(2)
Upgrade Notes: What's Different in Visual Basic.NET?
500(1)
Lesson 19 Quick Reference
500
Displaying HTML Documents with Internet Explorer
493(14)
Getting Started with the Internet Explorer Object
494(4)
Displaying HTML Documents
498(5)
One Step Further: Responding to Internet Explorer Events
503(11)
Upgrade Notes: What's Different in Visual Basic.NET?
514
Lesson 20 Quick Reference
506(1)
Designing Dynamic HTML Pages for the Web
507(34)
Inside Dynamic HTML
508(2)
Getting Started with the DHTML Page Designer
510(14)
One Step Further: Creating HTML Documents in Microsoft Word
524(14)
Upgrade Notes: What's Different in Visual Basic.NET?
538
Lesson 21 Quick Reference
528(13)
Adding Toolbox Elements and ActiveX Controls to DHTML Pages
541(26)
Getting Started with Toolbox Elements
541(6)
Creating and Customizing Elements
547(6)
Adding ActiveX Controls to a DHTML Page
553(2)
Creating Event Procedures for DHTML Elements
555(7)
One Step Further: Compiling a DHTML Application
562(2)
Upgrade Notes: What's Different in Visual Basic.NET?
564(1)
Lesson 22 Quick Reference
564(3)
PART 7 Advanced Database Programming 567(50)
Managing Data with the FlexGrid Control
569(22)
Using FlexGrid as a General-Purpose Spreadsheet
570(8)
Using FlexGrid to Display Database Records
578(7)
One Step Further: Searching the Biblio.mdb Database
585(3)
Upgrade Notes: What's Different in Visual Basic.NET?
588(1)
Lesson 23 Quick Reference
588(3)
Exploring ActiveX Data Objects
591(26)
Inside ADO
591(2)
Using the ADO ActiveX Control
593(8)
Writing ADO Program Code
601(6)
Building ActiveX Data Objects with the Data Environment Designer
607(4)
One Step Further: Additional Resources for Visual Basic Programming
611(2)
Upgrade Notes: What's Different in Visual Basic.NET?
613(1)
Lesson 24 Quick Reference
614(3)
Appendix A Upgrading Visual Basic 6 Programs to Visual Basic.NET 617(12)
Appendix B Where to Go for More Information 629(6)
Index 635

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.