Sie sind auf Seite 1von 2

VB6 beginners tutorial Learn VB6

Advanced VB6 tutorial Learn Advanced VB6


Systems Analysis System analysis and
Design tutorial for
Software Engineering

You are he re : Visual Basic

> VB6 (Beginners Tutorial)


Tutorial Main Page | Previous Page | Contents | Next Page

Bound Data Tools


Most of the Visual Basic tools weve studied can be used as bound, or
data-aware, tools (or controls). That means, certain tool properties can be
tied to a particular database field. To use a bound control, one or more data
controls must be on the form.

Browse Topics

Some bound data tools are:

- Ge tting starte d
- Data Type s
- Module s
- O pe rators in VB6
- VB6 Variable
- VB6 Proce dure s
- VB6 C ontrol Structure s
- Loops in VB6
- VB6 Ex it Do & W ith End

Label - Can be used to provide display-only access to a specified text data


field.

W ith
- Arrays in VB6
- Use r-De fine d Data
Type s
- VB6 C onstants
- VB6 Built-in Functions
- Date and Tim e in VB6
- VB6 C ontrols
- Te x tBox C ontrol
- C om boBox &
O ptionButton
- Labe l & Fram e

- Picture Box & Im age Box


- Tim e r C ontrol

Text Box - Can be used to provide read/write access to a specified text data
field. Probably, the most widely used data bound tool.
Check Box - Used to provide read/write access to a Boolean field.
Combo Box - Can be used to provide read/write access to a text data field.
List Box - Can be used to provide read/write access to a text data field.
Picture Box - Used to display a graphical image from a bitmap, icon, or
metafile on your form. Provides read/write access to a image/binary data
field.
Image Box - Used to display a graphical image from a bitmap, icon, or metafile on your form (uses fewer resources than a picture box).
Provides read/write access to a image/binary data field.
There are also three custom data aware tools, the DataCombo (better than using the bound combo box), DataList (better than the
bound list box), and DataGrid tools, we will look at later.
Bound Tool Properties:

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

- ListBox & C om boBox


- VB6 ScrollBar
- C ontrol Arrays in VB6
- File s controls in VB6
- VB6 C he ck Box
- Form s in VB6
- Me nus in VB6
- MDI Form in VB6
- InputBox
- Me ssage Box
- Mouse e ve nts
- Mouse Move
- Error Handling
- Error Handling (2)
- VB6 Database

DataChanged - Indicates whether a value displayed in a bound control has changed.


DataField - Specifies the name of a field in the table pointed to by the respective data control.
DataSource - Specifies which data control the control is bound to.
If the data in a data-aware control is changed and then the user changes focus to another control or tool, the database will automatically be
updated with the new data (assuming LockType is set to allow an update).
To make using bound controls easy, follow these steps (in order listed) in placing the controls on a form:
1. Draw the bound control on the same form as the data control to which it will be bound.
2. Set the DataSource property. Click on the drop-down arrow to list the data controls on your form. Choose one.
3. Set the DataField property. Click on the drop-down arrow to list the fields associated with the selected data control records. Make
your choice.
4. Set all other properties, as required.
By following these steps in order, we avoid potential data access errors.
The relationships between the bound data control and the data control are:

Tutorial Main Page | Previous Page | Contents | Next Page

Home | Link to Us | About Us | Privacy Policy | Contact Us


Copyright Freetutes.com | All Rights Reserved

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Das könnte Ihnen auch gefallen