home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 5 / MasteringVisualBasic5.iso / ch_code / ch11 / dblist / dblist.frm (.txt) next >
Encoding:
Visual Basic Form  |  1997-02-20  |  4.4 KB  |  145 lines

  1. VERSION 5.00
  2. Object = "{FAEEE763-117E-101B-8933-08002B2F4F5A}#1.1#0"; "DBLIST32.OCX"
  3. Begin VB.Form Form1 
  4.    Caption         =   "Data-bound List Example"
  5.    ClientHeight    =   3300
  6.    ClientLeft      =   60
  7.    ClientTop       =   345
  8.    ClientWidth     =   5760
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   3300
  11.    ScaleWidth      =   5760
  12.    StartUpPosition =   3  'Windows Default
  13.    Begin MSDBCtls.DBList DBList1 
  14.       Bindings        =   "DBList.frx":0000
  15.       Height          =   2985
  16.       Left            =   120
  17.       TabIndex        =   10
  18.       Top             =   180
  19.       Width           =   2550
  20.       _ExtentX        =   4498
  21.       _ExtentY        =   5265
  22.       _Version        =   327680
  23.       ListField       =   "ProductName"
  24.    End
  25.    Begin VB.Data Data1 
  26.       Caption         =   "Data1"
  27.       Connect         =   "Access"
  28.       DatabaseName    =   "C:\Program Files\DevStudio\VB\Nwind.mdb"
  29.       DefaultCursorType=   0  'DefaultCursor
  30.       DefaultType     =   2  'UseODBC
  31.       Exclusive       =   0   'False
  32.       Height          =   345
  33.       Left            =   180
  34.       Options         =   0
  35.       ReadOnly        =   0   'False
  36.       RecordsetType   =   1  'Dynaset
  37.       RecordSource    =   "Products"
  38.       Top             =   3450
  39.       Width           =   5340
  40.    End
  41.    Begin VB.Label Label10 
  42.       BorderStyle     =   1  'Fixed Single
  43.       Caption         =   "Label10"
  44.       DataField       =   "UnitsOnOrder"
  45.       DataSource      =   "Data1"
  46.       Height          =   315
  47.       Left            =   4590
  48.       TabIndex        =   9
  49.       Top             =   2835
  50.       Width           =   765
  51.    End
  52.    Begin VB.Label Label9 
  53.       Caption         =   "On Order"
  54.       Height          =   315
  55.       Left            =   4560
  56.       TabIndex        =   8
  57.       Top             =   2565
  58.       Width           =   795
  59.    End
  60.    Begin VB.Label Label8 
  61.       Caption         =   "Stock"
  62.       Height          =   255
  63.       Left            =   3135
  64.       TabIndex        =   7
  65.       Top             =   2565
  66.       Width           =   795
  67.    End
  68.    Begin VB.Label Label7 
  69.       BorderStyle     =   1  'Fixed Single
  70.       Caption         =   "Label7"
  71.       DataField       =   "UnitsInStock"
  72.       DataSource      =   "Data1"
  73.       Height          =   315
  74.       Left            =   3135
  75.       TabIndex        =   6
  76.       Top             =   2835
  77.       Width           =   1020
  78.    End
  79.    Begin VB.Label Label6 
  80.       Caption         =   "Price"
  81.       Height          =   255
  82.       Left            =   3135
  83.       TabIndex        =   5
  84.       Top             =   1695
  85.       Width           =   1455
  86.    End
  87.    Begin VB.Label Label5 
  88.       BorderStyle     =   1  'Fixed Single
  89.       Caption         =   "Label5"
  90.       DataField       =   "UnitPrice"
  91.       DataSource      =   "Data1"
  92.       Height          =   330
  93.       Left            =   3135
  94.       TabIndex        =   4
  95.       Top             =   1965
  96.       Width           =   1065
  97.    End
  98.    Begin VB.Label Label4 
  99.       Caption         =   "Quanity Per Unit"
  100.       Height          =   240
  101.       Left            =   3135
  102.       TabIndex        =   3
  103.       Top             =   885
  104.       Width           =   1380
  105.    End
  106.    Begin VB.Label Label3 
  107.       Caption         =   "Product Name"
  108.       Height          =   225
  109.       Left            =   3135
  110.       TabIndex        =   2
  111.       Top             =   120
  112.       Width           =   1530
  113.    End
  114.    Begin VB.Label Label2 
  115.       BorderStyle     =   1  'Fixed Single
  116.       Caption         =   "Label1"
  117.       DataField       =   "QuantityPerUnit"
  118.       DataSource      =   "Data1"
  119.       Height          =   330
  120.       Left            =   3135
  121.       TabIndex        =   1
  122.       Top             =   1185
  123.       Width           =   2490
  124.    End
  125.    Begin VB.Label Label1 
  126.       BorderStyle     =   1  'Fixed Single
  127.       Caption         =   "Label1"
  128.       DataField       =   "ProductName"
  129.       DataSource      =   "Data1"
  130.       Height          =   300
  131.       Left            =   3135
  132.       TabIndex        =   0
  133.       Top             =   420
  134.       Width           =   2505
  135.    End
  136. Attribute VB_Name = "Form1"
  137. Attribute VB_GlobalNameSpace = False
  138. Attribute VB_Creatable = False
  139. Attribute VB_PredeclaredId = True
  140. Attribute VB_Exposed = False
  141. Option Explicit
  142. Private Sub DBList1_Click()
  143. Data1.Recordset.Bookmark = DBList1.SelectedItem
  144. End Sub
  145.