form1.frm
来自「VB源码,是初学者的福因.让你很快掌握VB编程」· FRM 代码 · 共 60 行
FRM
60 行
VERSION 5.00
Object = "{FAEEE763-117E-101B-8933-08002B2F4F5A}#1.1#0"; "DBLIST32.OCX"
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 2415
ClientLeft = 60
ClientTop = 345
ClientWidth = 3870
LinkTopic = "Form1"
ScaleHeight = 2415
ScaleWidth = 3870
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text1
Height = 495
Left = 240
TabIndex = 1
Text = "Text1"
Top = 1320
Width = 3375
End
Begin MSDBCtls.DBList DBList1
Bindings = "Form1.frx":0000
Height = 1110
Left = 240
TabIndex = 0
Top = 120
Width = 3375
_ExtentX = 5953
_ExtentY = 1958
_Version = 393216
ListField = "Name"
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "E:\pptph\VB\10\mybooks.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 375
Left = 240
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "MyBooks"
Top = 1920
Width = 3420
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub DBList1_Click()
Data1.Recordset.Bookmark = DBList1.SelectedItem
Text1.Text = Data1.Recordset.Fields("Description")
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?