Controls in the VB development environment can be aware of data in two ways:
-
A control can be bindable to data fields in the Recordset of a
DataSource control. Examples of some controls that can be bound to data
in VB are TextBox controls, Labels,
ListBoxes, and ComboBoxes.
-
A control can be a DataSource, exposing a Recordset's
data fields to which other controls can bind. The ADO Data Control discussed in
Chapter 8 is an example of such a control.
In the following sections, we discuss how you can create your own ActiveX controls
that are either data-bound controls like the TextBox or
DataSource controls like the ADO Data Control.
-
Enabling the Data-Binding Capabilities of an ActiveX Control
-
Creating an ActiveX Control that Is a Data Source