Skip to main content

Visual Basic 6 For Dummies

Visual Basic 6 For Dummies

Wallace Wang

ISBN: 978-0-764-50370-2

Sep 1998

504 pages

Select type: Paperback

In Stock

$39.99

Description

Create your own custom Visual Basic programs fast for Windows 95, Windows 98, and Windows NT!

If you want to develop business applications for Windows, then Microsoft's Visual Basic 6 programming environment is for you. With its powerful and friendly object-oriented interface, Visual Basic 6 is the ideal tool for creating easy-to-use and attractive interfaces of your own. Whether you want to build original programs from the ground up or take advantage of existing wizards, Visual Basic 6 For Dummies will help you design and debug your work - and accomplish all your goals!

  • Covers using Visual Basic 6 with Windows 95, Windows 98, and Windows NT
  • Walks you through the ins and outs of object-oriented programming in Visual Basic and using the Visual Basic toolset
  • Shows you how to make use of menus and submenus, write subprograms that everyone can share, save and retrieve information in databases, integrate ActiveX controls into your applications, and build attractive user interfaces with buttons, boxes, and scroll bars

From the fundamentals of writing BASIC code to the thrill of distributing your very own custom applications, Visual Basic 6 For Dummies brings a fresh perspective to programming in Visual Basic 6 that everyone can understand.

Introduction 1

PART I: Creating a Visual Basic 6 Program 7

Chapter 1: How Visual Basic Works 9

Chapter 2: Using the Visual Basic User Interface 15

Chapter 3: Designing Your First User Interface 23

Chapter 4: Writing Basic Code 41

PART II: Creating User Interfaces 53

Chapter 5: User Interface Design 101 55

Chapter 6: Forms and Buttons 81

Chapter 7: Boxes and Buttons for Making Choices 103

Chapter 8: Text Boxes for Typing and Showing Words 123

Chapter 9: Scroll Bars and Labels 135

Chapter 10: Pretty Pictures and Objects from Geometry 145

PART III: Making Menus 161

Chapter 11: Creating and Editing Pull-Down Menus 163

Chapter 12: Submenus, Growing Menus, and Pop-Up Menus 181

Chapter 13: Dialog Boxes 191

PART IV: The Basics of Writing Code 207

Chapter 14: Event Procedures 209

Chapter 15: Using Variables 223

Chapter 16: Responding to the User 247

Chapter 17: Math 101: Arithmetic, Logical, and Comparison Operators 259

Chapter 18: Strings and Things 275

Chapter 19: Defining Constants and Using Comments 287

Chapter 20: Killing Bugs 299

PART V: Making Decisions (Something you Stop Doing When You Get Married) 309

Chapter 21: The If-Then and If-Then-Else Statements 311

Chapter 22: The Select Case Statement 321

PART VI: Getting Loopy 327

Chapter 23: The Do While and Do-Loop While Loops 329

Chapter 24: The Do Until and Do-Loop Until Loops 335

Chapter 25: For Next Loops That Can Count 341

Chapter 26: Nested Loops and Quick Exits 349

PART VII: Writing Subprograms (So You Don't Go Crazy All at Once) 353

Chapter 27: General Procedures (Subprograms Tha Everyone Can Share) 355

Chapter 28: Passing Arguments 363

Chapter 29: Functions, a Unique Type of Subprogram 373

Chapter 30: Getting Some Class with Object-Oriented Programming 385

Chapter 31: Managing Files 403

PART VIII: Database Files and Printing 409

Chapter 32: Creating Database Files 411

Chapter 33: Using Files from Database Programs You'd Rather Not Use 417

Chapter 34: Making Your Program Print Stuff 433

PART IX: The Part of Tens 441

Chapter 35: The Ten Visual Basic Topics That Didn't Fit Anywhere Else 443

Appendix A: About the CD 451

Index 459

IDG Books Worldwide End-User License Agreement 476

Installation Instructions 478

Book Registration Information ...... Back of Book