📄 frm课程ado控年dsn.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frm课程ADO控年DSN
Caption = "Form1"
ClientHeight = 1830
ClientLeft = 60
ClientTop = 345
ClientWidth = 3975
LinkTopic = "Form1"
ScaleHeight = 1830
ScaleWidth = 3975
StartUpPosition = 3 '窗口缺省
Begin MSAdodcLib.Adodc Adodc1
Height = 465
Left = 945
Top = 1080
Width = 2085
_ExtentX = 3678
_ExtentY = 820
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 3
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "DSN=ODBC_MyDB"
OLEDBString = ""
OLEDBFile = ""
DataSourceName = "ODBC_MyDB"
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "课程"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.TextBox txtNumber
DataField = "课程编号"
DataSource = "Adodc1"
Height = 330
Left = 900
TabIndex = 3
Top = 0
Width = 960
End
Begin VB.TextBox Text1
DataField = "课程名称"
DataSource = "Adodc1"
Height = 330
Left = 2925
TabIndex = 2
Top = 0
Width = 960
End
Begin VB.TextBox Text2
DataField = "授课老师"
DataSource = "Adodc1"
Height = 330
Left = 855
TabIndex = 1
Top = 585
Width = 960
End
Begin VB.TextBox Text3
DataField = "学分"
DataSource = "Adodc1"
Height = 330
Left = 2925
TabIndex = 0
Top = 585
Width = 960
End
Begin VB.Label Label1
Caption = "课程编号"
Height = 195
Left = 45
TabIndex = 7
Top = 45
Width = 825
End
Begin VB.Label Label2
Caption = "课程名称"
Height = 195
Left = 2070
TabIndex = 6
Top = 45
Width = 825
End
Begin VB.Label Label3
Caption = "授课老师"
Height = 240
Left = 0
TabIndex = 5
Top = 630
Width = 825
End
Begin VB.Label Label4
Caption = "学 分"
Height = 240
Left = 2070
TabIndex = 4
Top = 630
Width = 825
End
End
Attribute VB_Name = "frm课程ADO控年DSN"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
'Adodc1.ConnectionString = "dsn=odbc_mydb"
'Adodc1.CommandType = adCmdTable
'Adodc1.RecordSource = "课程"
'txtNumber.DataSource = Adodc1
'txtNumber.DataField = Adodc1.Recordset("课程编号")
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -