Page 228 - Open Soource Technologies 304.indd
P. 228

Event Driven Programming



                          10.2 The Data-Bound Controls

                          We can bind certain controls to the data control, the remote data control, and the ADO data
                          control and those controls are called bound controls. To bind a control to a database control, we
                          use properties like  DataSource to specify the database control, and then use properties like
                          DataField or  BoundColumn to specify what field to display in the bound control, Here are the
                          controls that can function as bound controls:
                             • Picture boxes
                             • Labels
                             • Text boxes
                             • Checkboxes
                             • Image controls
                             • OLE controls
                             • List boxes
                             • Masked edit controls
                             • Rich text boxes
                             • Combo boxes
                          In addition, there are special controls that are designed to be used as bound controls:
                             • DBList
                             • DBCombo
                             • FlexGrid
                             • MSFlexGrid
                          Finally, a number of bound controls are specially built to be used with the ADO control only:
                             • DataList
                             • DataCombo
                             • DataGrid

                          We’ll see these controls at work in this chapter. That’s it, then, for the overview of databases.
                          We’ve seen how the process works in overview; now it’s time to turn to the immediate solutions.

                          10.3   Creating Database Using Visual Database Manager


                          To create a database using Visual DBA, use the Create Database dialog.
                          10.3.1 To Create a Database
                            1. Select the Databases object category branch in the Database Object Manager window, and

                               then click the Add Object toolbar button   .


                               The Create Database dialog appears.

                               The fields in this sample dialog are filled in as if creating the demodb database.


                          222                    LOVELY PROFESSIONAL UNIVERSITY
   223   224   225   226   227   228   229   230   231   232   233