home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{FAEEE763-117E-101B-8933-08002B2F4F5A}#1.1#0"; "DBLIST32.OCX"
- Begin VB.Form Form1
- Caption = "Data-bound List Example"
- ClientHeight = 3300
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 5760
- LinkTopic = "Form1"
- ScaleHeight = 3300
- ScaleWidth = 5760
- StartUpPosition = 3 'Windows Default
- Begin MSDBCtls.DBList DBList1
- Bindings = "DBList.frx":0000
- Height = 2985
- Left = 120
- TabIndex = 10
- Top = 180
- Width = 2550
- _ExtentX = 4498
- _ExtentY = 5265
- _Version = 327680
- ListField = "ProductName"
- End
- Begin VB.Data Data1
- Caption = "Data1"
- Connect = "Access"
- DatabaseName = "C:\Program Files\DevStudio\VB\Nwind.mdb"
- DefaultCursorType= 0 'DefaultCursor
- DefaultType = 2 'UseODBC
- Exclusive = 0 'False
- Height = 345
- Left = 180
- Options = 0
- ReadOnly = 0 'False
- RecordsetType = 1 'Dynaset
- RecordSource = "Products"
- Top = 3450
- Width = 5340
- End
- Begin VB.Label Label10
- BorderStyle = 1 'Fixed Single
- Caption = "Label10"
- DataField = "UnitsOnOrder"
- DataSource = "Data1"
- Height = 315
- Left = 4590
- TabIndex = 9
- Top = 2835
- Width = 765
- End
- Begin VB.Label Label9
- Caption = "On Order"
- Height = 315
- Left = 4560
- TabIndex = 8
- Top = 2565
- Width = 795
- End
- Begin VB.Label Label8
- Caption = "Stock"
- Height = 255
- Left = 3135
- TabIndex = 7
- Top = 2565
- Width = 795
- End
- Begin VB.Label Label7
- BorderStyle = 1 'Fixed Single
- Caption = "Label7"
- DataField = "UnitsInStock"
- DataSource = "Data1"
- Height = 315
- Left = 3135
- TabIndex = 6
- Top = 2835
- Width = 1020
- End
- Begin VB.Label Label6
- Caption = "Price"
- Height = 255
- Left = 3135
- TabIndex = 5
- Top = 1695
- Width = 1455
- End
- Begin VB.Label Label5
- BorderStyle = 1 'Fixed Single
- Caption = "Label5"
- DataField = "UnitPrice"
- DataSource = "Data1"
- Height = 330
- Left = 3135
- TabIndex = 4
- Top = 1965
- Width = 1065
- End
- Begin VB.Label Label4
- Caption = "Quanity Per Unit"
- Height = 240
- Left = 3135
- TabIndex = 3
- Top = 885
- Width = 1380
- End
- Begin VB.Label Label3
- Caption = "Product Name"
- Height = 225
- Left = 3135
- TabIndex = 2
- Top = 120
- Width = 1530
- End
- Begin VB.Label Label2
- BorderStyle = 1 'Fixed Single
- Caption = "Label1"
- DataField = "QuantityPerUnit"
- DataSource = "Data1"
- Height = 330
- Left = 3135
- TabIndex = 1
- Top = 1185
- Width = 2490
- End
- Begin VB.Label Label1
- BorderStyle = 1 'Fixed Single
- Caption = "Label1"
- DataField = "ProductName"
- DataSource = "Data1"
- Height = 300
- Left = 3135
- TabIndex = 0
- Top = 420
- Width = 2505
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub DBList1_Click()
- Data1.Recordset.Bookmark = DBList1.SelectedItem
- End Sub
-