Visual Basic 6 Programming:
Business Applications with a Design Perspective
Table of Contents
Chapter 3 Some Visual Basic Controls and Events
- 3.1 Obtaining Open-Ended Input from the User: Textbox and Masked Edit Control
- Text Property of the Textbox
- The Masked Edit Box Control
- Comparing the Text Properties of the Two Controls
- Clearing the Text Property
- SelStart and SelLength Properties
- The ClipText Property
3.2 Arranging Many VB Controls on a Form: Frame and SSTab controls
- The Frame Control
- The SSTab Control1
- 3.3 Data with Limited Number of Choices: Option Buttons and Check Boxes
- The Option Button
- Check Boxes for Independent Choices
- 3.4 Longer List of Known Items: List boxes and Combo Boxes
- The List Box Control
- The Need for the Combo Box
- 3.5 Picture Boxes as Containers and Image Controls for Pictures
- The Picture Box
- The Image Control
- 3.6 VB Controls in the Design of A Data Entry Interface: Recapitulation
- 3.7 Naming the Controls and Setting the Tab Order
- Naming Convention: Suggested Name Prefixes
- Setting the Tab Order
- 3.8 Some Commonly Used Events
- Setting the Initial State at Run Time: The Form Load Event
- Various Uses of The Click and dblClick (Double Click) Events
- Viewing the Key Entered: The KeyPress Event
- Before the User Does Anything in a Control: The GotFocus Event
- As the User Leaves the Field: The LostFocus Event
- 3.9 An Application Example
- The Project
- The Visual Interface
- Setting the Tab Order
- Coding the Event Procedures
- Testing the Project
- Summary
- Visual Basic Explorer
- Exercises
- Projects