home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / PVb5.0 / VB / SAMPLES / PGUIDE / FIRSTAPP / FORM1.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1997-01-20  |  2.4 KB  |  85 lines

  1. VERSION 5.00
  2. Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
  3. Begin VB.Form Form1 
  4.    Caption         =   "
  5.    ClientHeight    =   5490
  6.    ClientLeft      =   330
  7.    ClientTop       =   1305
  8.    ClientWidth     =   6630
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   5490
  11.    ScaleWidth      =   6630
  12.    StartUpPosition =   3  'Windows Default
  13.    Begin VB.CommandButton Command2 
  14.       Caption         =   "
  15.       Height          =   375
  16.       Left            =   5280
  17.       TabIndex        =   3
  18.       Top             =   4920
  19.       Width           =   1215
  20.    End
  21.    Begin VB.CommandButton Command1 
  22.       Caption         =   "
  23.       Height          =   375
  24.       Left            =   120
  25.       TabIndex        =   2
  26.       Top             =   4920
  27.       Width           =   1215
  28.    End
  29.    Begin VB.Data Data1 
  30.       Caption         =   "Data1"
  31.       Connect         =   "Access"
  32.       DatabaseName    =   "C:\Program Files\DevStudio\VB\Biblio.mdb"
  33.       DefaultCursorType=   0  '
  34.       DefaultType     =   2  '
  35.  ODBC
  36.       Exclusive       =   0   'False
  37.       Height          =   300
  38.       Left            =   120
  39.       Options         =   0
  40.       ReadOnly        =   0   'False
  41.       RecordsetType   =   1  'Dynaset
  42.       RecordSource    =   "All Titles"
  43.       Top             =   4440
  44.       Width           =   6375
  45.    End
  46.    Begin VB.ListBox List1 
  47.       Height          =   1170
  48.       Left            =   120
  49.       TabIndex        =   1
  50.       Top             =   3000
  51.       Width           =   6375
  52.    End
  53.    Begin MSDBGrid.DBGrid DBGrid1 
  54.       Bindings        =   "Form1.frx":0000
  55.       Height          =   2655
  56.       Left            =   120
  57.       OleObjectBlob   =   "Form1.frx":0010
  58.       TabIndex        =   0
  59.       Top             =   120
  60.       Width           =   6375
  61.    End
  62. Attribute VB_Name = "Form1"
  63. Attribute VB_GlobalNameSpace = False
  64. Attribute VB_Creatable = False
  65. Attribute VB_PredeclaredId = True
  66. Attribute VB_Exposed = False
  67. Option Explicit
  68. Private Sub Command1_Click()
  69.     List1.Clear         ' 
  70.  listbox
  71. End Sub
  72. Private Sub Command2_Click()
  73.     Unload Form1
  74.     End                 ' 
  75. End Sub
  76. Private Sub Data1_Reposition()
  77.     ' 
  78.  caption 
  79.     Data1.Caption = Data1.Recordset("Title")
  80. End Sub
  81. Private Sub DBGrid1_DblClick()
  82.     ' 
  83.     List1.AddItem Data1.Recordset("Title")
  84. End Sub
  85.