Using Visual Basic 6 (Using)
Richard J. Simon, Que ISBN:078971633X, Edition: , 1998-10-08 Price: $44.99
Table of Contents:
Part I - Visual Basic Fundamentals
- Chapter 1 - Building Your First Application
- Writing Your First Application
- Starting Visual Basic
- Building the Calendar Feature
- Adding a Clock Feature
- Configuring the Timer Control
- Using the Label Control to Display the Time
- Adding a Message
- Improving Your First Application
- Chapter 2 - What's New with Visual Basic 6
- Getting a Quick Overview of VB6
- Getting More Power from Enhanced Controls
- The Validate Event and the CausesValidation Property
- Adding Excitement with the New Graphical Enhancements
- Working with the New Controls
- Selecting Dates with the MonthView and DateTimePicker Controls
- Making Movable Toolbars with the CoolBar
- Using Graphics with an ImageCombo
- The FlatScrollBar Control
- Working with the New Language Features
- File System Objects
- New String Functions
- True Dynamic Control Creation
- Learning About VB and the Internet
- Finding Out About the New Data Capabilities
- New Object Programming Additions
- Chapter 3 - Working in the Visual Basic 6 Programming Environment
- Understanding the Parts of the IDE
- Adding and Removing Toolbars in the Visual Basic IDE
- Using the Debug Toolbar
- Using the Edit Toolbar
- Using the Form Editor Toolbar
- Using the Standard Toolbar
- Adding Controls with the ToolBox
- Navigating Through the Form Window and Code Window
- Managing Applications with the Project Explorer
- Controlling Settings with the Properties Window
- Setting Form Position with the Form Layout Window
- Viewing the IDE
- Chapter 4 - Using the Intrinsic Controls
- What Are Forms and Controls?
- What Are Intrinsic Controls?
- Adding and Removing Controls
- The Importance of Naming Controls
- How to Size and Position a Control
- Modifying a Form's Size
- Working with Containers
- Extending Visual Basic by Adding Controls
- Chapter 5 - Working with Projects in Visual Basic 6
- What Is a Visual Basic Project?
- Using the Project Explorer
- Creating a New Project
- Changing a Project's Properties
- Saving and Naming a Project
- Opening an Existing Project
- Adding Files to a Project
- Removing Files from a Project
- Using Project Groups
- Chapter 6 - Working with Properties, Methods, and Events
- What Are Properties, Methods, and Events?
- The Relationship Between Properties, Methods, and Events
- The Importance of Event-Driven Programming
- Using Properties, Methods, and Events in a Sample Program
- Creating the Interface
- Programming the Form_Load() Event Procedure
- Programming the Click() Event
- Adding Event Notification
Part II - Programming with Visual Basic
- Chapter 7 - Using Data Types, Constants, and Variables
- Storing Information in Variables
- Declaring Variables
- Naming Variables
- Choosing the Correct Variable Type
- Making Explicit Declarations
- Using Type Suffixes with Variables
- Using Strings
- Using Variable-Length and Fixed-Length Strings
- Determining Where a Variable Can Be Used
- Making Variables Available Globally
- Keeping a Variable Local
- Using Static Variables
- Using Constants
- Using Constants Supplied by Visual Basic
- Creating Your Own Constants
- Using the Assignment Statement
- Revisiting the Addition Program
- Chapter 8 - Making Statements in a Program
- Using the Assignment Statement
- Using Variable Default Values
- Using Math Operators
- Using Addition and Subtraction Operators
- Using the Multiplication Operator
- Using the Division Operator
- Using Exponents
- Setting the Order of Precedence in Statements
- Concatenating Strings
- Chapter 9 - Working with Conditional Statements
- Making Decisions in Your Program
- Writing If...Then Statements
- Writing a Single-Line If Statement
- Executing Multiple Commands in the Conditional Statement
- Using If...Then...Else Statements
- Working with Multiple If Statements
- Using Nested If Statements
- Using the Select Case Statement
- Using Relational Operators in Select Case Blocks
- Chapter 10 - Working with Loops
- Putting Loops to Work
- Using For...Next Loops
- Terminating the For...Next Loop Early
- Using Do...Loop Statements
- Using Do...While Loops
- Do loops will always run once if tested at the end
- Using Do...Until Statements
- Breaking an Infinite Loop
- Nesting Loops
- Working with Multiple Loops
- Using Nested Loops to Eliminate Loops
- Loading Data with Nested Loops
- Chapter 11 - Working with Arrays
- What Is an Array?
- Declaring Arrays
- Declaring an Array like Declaring a Single Variable
- Declaring an Array with the To Keyword
- Changing the Number of Elements in an Array
- Multidimensional Arrays
- Using Loops to Traverse an Array
- Adding Items to ListBoxes and ComboBoxes
- Selecting Items from a List
- Removing Items from a List
- Clearing a List
- Understanding ComboBox Styles
- Using Arrays, ComboBoxes, and ListBoxes in a Sample Program
- Examining ScoreKeeper's Event Procedures
- Chapter 12 - Working with Strings and Typecasting
- Manipulating Strings
- Reversing the Order of Characters in Strings
- Replacing Characters Within Strings
- Concatenating Strings
- Determining a String's Length with Len()
- Truncating Strings with Left() and Right()
- Using Mid() to Return Characters from Inside a String
- Using InStr() to Search for Characters Within a String
- Using Strings and Arrays of Strings
- Splitting a String into an Array of Strings with Split()
- Creating a Sublist from an Array of Strings with Filter()
- Combining an Array of Strings with Join()
- Changing a String's Case with UCase() and LCase()
- Using String-Parsing Functions
- Controlling Data Types with Typecasting
- Changing Data Types with the Conversion Functions
- Validating Data with IsNumeric()
Part III - The Elements of Visual Basic 6
- Chapter 13 - Creating Menus in Your Programs
- Understanding the Windows Standard Menus
- Using Visual Basic's Application Wizard
- Using Visual Basic's Menu Editor
- Setting Menu Properties
- Adding Access Keys to Menu Items
- Adding Shortcut Keys to Menu Items
- Creating Pop-Up Menus
- Creating Complex Menus
- Adding Separator Lines to Menus
- Using the Checked Property
- Cutting, Copying, and Pasting with the Clipboard Object
- Selecting Text in a TextBox
- Chapter 14 - Enhancing Your Programs with Forms and Dialog Boxes
- Creating Message Boxes with the MsgBox() Function and the MsgBox Statement
- Adding Icons to Message Boxes
- Retrieving a Value from the MsgBox() Function
- Using Predefined Forms
- Getting User Input from the CommonDialog Control
- Retrieving File Information with the File Dialog
- Selecting Font Information with the Font Dialog
- Selecting Colors with the Color Dialog
- Setting Printer Options with the Print Dialog
- Making a Simple MDI Application
- The Appearance Property
- The AutoShowChildren Property
- Chapter 15 - Handling Keyboard and Mouse Input in Your Programs
- Understanding Device Input
- Working with the KeyPress Event
- Working with the KeyUp and KeyDown Events
- Using the KeyPreview Property
- Understanding Mouse Input
- Using the Click Event
- Working with MouseDown and MouseUp Events
- Working with the MouseMove Event
- Recognizing VB's Limitations with Mouse Input
- Chapter 16 - Working with Time and Timers
- Understanding Serial Time
- Understanding the Timer Control
- Using the Time, Date, and Now Functions
- Use a Timer to Build a Clock Program
- Using the Format() Function
- Calculating Date Differences
- Using Static Variables with a Timer
- Chapter 17 - Adding Graphics to Your Programs
- Adding Graphics to a Form
- Changing a Picture at Runtime
- Making a Custom Button
- Adding Graphics to Forms with LoadPicture()
- Making a Form Icon
- Loading Files with a File List Box
- Chapter 18 - Writing Reusable Code with Subs and Functions
- Using Procedures in Visual Basic
- Making and Calling a Simple Sub
- Making Subs by Using Add Procedure
- Making a Simple Function
- Passing Arguments into Subs and Functions
- Exiting Subs and Functions
- Understanding Scope
- Documenting Subs and Functions
- Determining Your Entry Point with Sub Main()
- Chapter 19 - Saving and Retrieving Your Data with Visual Basic
- Understanding Persistence
- Working with Files to Store and Retrieve Data
- Saving Data with the Open Statement
- Retrieving Data with Input Statements
- Manipulating Graphics with LoadPicture() and SavePicture()
- Saving and Retrieving Data with the Visual Basic Registry Functions
- Retrieving Values with GetSetting()
- Saving Values to the Registry with the SaveSetting Statement
- Retrieving an Array of Settings with GetAllSettings()
- Deleting a Key Section with the DeleteString Statement
- Using File System Objects
- Chapter 20 - Deploying Your Visual Basic Applications
- Working with Version Information
- Compiling Your Project
- Using the Package and Deployment Wizard
Part IV - Advanced Programming with Visual Basic 6
- Chapter 21 - Debugging Your Applications
- Catching Undeclared Variables with Option Explicit
- Checking Code Segments with Breakpoints
- Monitoring Variable Values with Watches
- Monitoring Additional Variables with Add Watch
- Examining Code Line by Line with Step Into and Step Over
- Stopping at Selected Lines with Run to Cursor
- Using Advanced Debugging Tools
- Using Find and Replace
- Designing Applications for Debugging
- Creating an Error Handler
- Chapter 22 - Creating Controls On-the-Fly Using Control Arrays
- What Is a Control Array?
- Creating a Control Array at Design Time
- Extending Control Arrays at Runtime
- Working with a Common Event Handler
- Grouping Objects with the Frame Control
- Using the Scroll Bar Controls
- Using For...Next Loops with Control Arrays
- Chapter 23 - Programming Beyond Visual Basic Using the Windows API
- Understanding the Windows API
- Working with the API Viewer
- Monitoring Mouse Movement with GetCursorPos
- Keeping a Window Always on Top by Using SetWindowPos
- Dragging a Window by Using SendMessage
- Enhancing a List Box with SendMessage
- Chapter 24 - Adding Help to Your Programs
- Providing Help for Your Programs
- Using the Help Workshop
- Making a Help File
- Adding Help Files to Your Application
- Making Context-Sensitive Help
- Chapter 25 - Using VBA to Connect Your VB Programs with Microsoft Office
- Working with VBA
- Using VBA with Microsoft Office
- Using the Record Macro Tool
- Using the Object Browser
- Making a Simple VB/Microsoft Office Application
- Making a Spelling Checker with VB and Word
- Making a Word Search Program
- Working with Visual Basic, Access, and Excel
- Chapter 26 - Making Object-Oriented Programs with Visual Basic
- Understanding User-Defined Types
- Making Objects from Classes
- Creating a Class in Visual Basic
- Adding Properties to a Class
- Creating an Object from a Class
- Making an ActiveX DLL
- Working with Components
- Chapter 27 - Creating Your Own ActiveX Controls with Visual Basic
- Creating an ActiveX Control
- Understanding the UserControl Object
- Adding a UserControl to a Form
- Adding Functionality to an ActiveX Control
- Compiling Custom ActiveX Controls
- Deploying Custom ActiveX Controls
- Chapter 28 - Creating VB Programs for the Internet
- Working on the Internet
- Making a Simple Program with VBScript
- Using VBScript with Internet Explorer
- Working with HTML Elements
- More on Scripts
- Incorporating VBScript with HTML
- Handling Events with VBScript
- Understanding a DHTML Application
- Programming a Simple DHTML Application
- Rapid Development with DHTML Applications
- Using DHTML with ActiveX Components
- Compiling a DHTML Application
- Chapter 29 - Making Programming Easier with Visual Basic Add-Ins
- Working with Add-Ins
- Attaching Add-Ins to the Add-Ins Menu
- Attaching Add-Ins to the Add-Ins Toolbar
- Using Add-Ins
- Using the VB6 Application Wizard
- Using the VB6 Data Form Wizard
- Creating a Custom Add-In
- How the Add-In Works
- Understanding the Visual Basic 6 IDE Object Model
Part V - Database Programming with Visual Basic 6
- Chapter 30 - Database Basics and the Data Control
- Understanding Databases
- Understanding Database Terminology
- Working with the Intrinsic Data Control
- Connecting the Intrinsic Data Control to a Database
- Creating Database-Bound Forms with the Data Form Wizard
- Chapter 31 - Making Reports in Visual Basic 6
- What's New with Reporting?
- Building a Simple Report
- Chapter 32 - Enhancing Your Programs Using the Advanced Data Controls
- What Are Advanced Data Controls?
- Adding and Configuring the ADO Data Control
- Using the DataGrid Control
- Selecting Grid Columns
- Cleaning Up the Form
- Configuring Other DataGrid Properties
- Using the DataList Control
- Configuring DataList Control Properties
- Using the DataCombo Control
- Working with the Data Form Wizard
- Appendix A Command Syntax
Functions and Statements
- Abs Function
- AppActivate Statement
- Array Function
- Asc Function
- Atn Function
- Beep Statement
- Call Statement
- CBool Function
- CByte Function
- CCur Function
- CDate Function
- CDbl Function
- CDec Function
- ChDir Statement
- ChDrive Statement
- Choose Function
- Chr Function
- CInt Function
- CLng Function
- Close Statement
- Command Function
- Const Statement
- Cos Function
- CreateObject Function
- CSng Function
- CStr Function
- CurDir Function
- CVar Function
- CVErr Function
- Date Function
- Date Statement
- DateAdd Function
- DateDiff Function
- DatePart Function
- DateSerial Function
- DateValue Function
- Day Function
- DDB Function
- Declare Statement
- DefBool Statement
- DefByte Statement
- DefCur Statement
- DefDate Statement
- DefDbl Statement
- DefDec Statement
- DefInt Statement
- DefLng Statement
- DefObj Statement
- DefSng Statement
- DefStr Statement
- DefVar Statement
- DeleteSetting Statement
- Dim Statement
- Dir Function
- Do...Loop Statement
- DoEvents Function
- End Statement
- Enum Statement
- Environ Function
- EOF Function
- Erase Statement
- Error Function
- Error Statement
- Event Statement
- Exit Statement
- Exp Function
- FileAttr Function
- FileCopy Statement
- FileDateTime Function
- FileLen Function
- Fix Function
- For Each...Next Statement
- For...Next Statement
- Format Function
- FreeFile Function
- Function Statement
- FV Function
- Get Statement
- GetAllSettings Function
- GetAttr Function
- GetAutoServerSettings Function
- GetObject Function
- GetSetting Function
- GoSub...Return Statement
- GoTo Statement
- Hex Function
- Hour Function
- If...Then...Else Statement
- IIf Function
- IMEStatus Function
- Implements Statement
- Input # Statement
- Input Function
- InputBox Function
- InStr Function
- Int Function
- IPmt Function
- IRR Function
- IsArray Function
- IsDate Function
- IsEmpty Function
- IsError Function
- IsMissing Function
- IsNull Function
- IsNumeric Function
- IsObject Function
- Kill Statement
- LBound Function
- LCase Function
- Left Function
- Len Function
- Let Statement
- Line Input # Statement
- Load Statement
- LoadPicture Function
- LoadResData Function
- LoadResPicture Function
- LoadResString Function
- Loc Function
- Lock Statement
- LOF Function
- Log Function
- LSet Statement
- LTrim Function
- Mid Function
- Mid Statement
- Minute Function
- MIRR Function
- MkDir Statement
- Month Function
- MsgBox Function
- Name Statement
- Now Function
- NPer Function
- NPV Function
- Oct Function
- On Error Statement
- On...GoSub Statement
- On...GoTo Statement
- Open Statement
- Option Base Statement
- Option Compare Statement
- Option Explicit Statement
- Option Private Statement
- Partition Function
- Pmt Function
- PPmt Function
- Print # Statement
- Private Statement
- Property Get Statement
- Property Let Statement
- Property Set Statement
- Public Statement
- Put Statement
- PV Function
- QBColor Function
- RaiseEvent Function
- Randomize Statement
- Rate Function
- ReDim Statement
- Rem Statement
- Reset Statement
- Resume Statement
- RGB Function
- Right Function
- RmDir Statement
- Rnd Function
- RSet Statement
- RTrim Function
- SavePicture Statement
- SaveSetting Statement
- Second Function
- Seek Function
- Seek Statement
- Select Case Statement
- SendKeys Statement
- Set Statement
- SetAttr Statement
- Sgn Function
- Shell Function
- Sin Function
- SLN Function
- Space Function
- Spc Function
- Sqr Function
- Static Statement
- Stop Statement
- Str Function
- StrComp Function
- StrConv Function
- String Function
- Sub Statement
- Switch Function
- SYD Function
- Tab Function
- Tan Function
- Time Function
- Time Statement
- Timer Function
- TimeSerial Function
- TimeValue Function
- Trim Function
- Type Statement
- TypeName Function
- UBound Function
- UCase Function
- Unload Statement
- Unlock Statement
- Val Function
- VarType Function
- Weekday Function
- While...Wend Statement
- Width # Statement
- With Statement
- Write # Statement
- Year Function
- Summary
- Appendix B Control Syntax: Properties, Events, and Methods
Common Properties, Events, and Methods
- Animation
- CheckBox
- ComboBox
- CommandButton
- Common Dialog
- Data
- DBCombo
- DBGrid
- DBList
- DirListBox
- DriveListBox
- FileListBox
- Form
- Frame
- HScrollBar
- Image
- ImageList
- Internet Transfer (Inet)
- Label
- Line
- ListBox
- ListView
- MAPIMessages
- MAPISession
- Masked Edit (MaskEdBox)
- MDIForm
- Microsoft Tabbed Dialog (SSTab)
- MSChart
- MSComm
- MSFlexGrid
- MSRDC (Remote Data Control)
- Multimedia MCI
- OLE
- OptionButton
- PictureBox
- PictureClip
- Printer
- ProgressBar
- Property Page
- RichTextBox
- Screen
- Shape
- Slider
- StatusBar
- Sysinfo
- TabStrip
- TextBox
- Timer
- Toolbar
- TreeView
- UpDown
- UserControl
- UserDocument
- VScrollBar
- Winsock
- Summary
- Glossary
|
|