📄 form5.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "msadodc.ocx"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDatGrd.ocx"
Begin VB.Form Form5
BackColor = &H00E0E0E0&
Caption = "信息"
ClientHeight = 4905
ClientLeft = 60
ClientTop = 345
ClientWidth = 9465
LinkTopic = "Form5"
ScaleHeight = 4905
ScaleWidth = 9465
StartUpPosition = 3 '窗口缺省
Begin VB.PictureBox Picture1
Appearance = 0 'Flat
FillColor = &H0080FF80&
ForeColor = &H80000008&
Height = 1215
Left = 120
ScaleHeight = 1185
ScaleWidth = 9105
TabIndex = 4
Top = 120
Width = 9135
Begin VB.TextBox Text1
BackColor = &H00FFFFFF&
DataField = "批号"
DataSource = "Adodc1"
Height = 375
Left = 960
TabIndex = 8
Text = "Text1"
Top = 240
Width = 1215
End
Begin VB.TextBox Text2
DataField = "名称"
DataSource = "Adodc1"
Height = 375
Left = 3240
TabIndex = 7
Text = "Text2"
Top = 240
Width = 1095
End
Begin VB.TextBox Text9
DataField = "说明"
DataSource = "Adodc1"
Height = 375
Left = 7560
TabIndex = 6
Text = "Text2"
Top = 240
Width = 1095
End
Begin VB.TextBox Text10
DataField = "型号"
DataSource = "Adodc1"
Height = 375
Left = 5280
TabIndex = 5
Text = "Text1"
Top = 240
Width = 1215
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "批号"
Height = 255
Left = 120
TabIndex = 12
Top = 360
Width = 735
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "名称"
Height = 375
Left = 2400
TabIndex = 11
Top = 360
Width = 735
End
Begin VB.Label Label9
BackStyle = 0 'Transparent
Caption = "说明"
Height = 375
Left = 6840
TabIndex = 10
Top = 360
Width = 1215
End
Begin VB.Label Label10
BackStyle = 0 'Transparent
Caption = "型号"
Height = 255
Left = 4680
TabIndex = 9
Top = 360
Width = 615
End
End
Begin VB.CommandButton Command4
Caption = "退出"
Height = 375
Left = 5400
TabIndex = 3
Top = 4440
Width = 855
End
Begin VB.CommandButton Command3
Caption = "添加"
Height = 375
Left = 3600
TabIndex = 2
Top = 4440
Width = 855
End
Begin VB.CommandButton Command2
Caption = "删除"
Height = 375
Left = 4440
TabIndex = 1
Top = 4440
Width = 855
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "Form5.frx":0000
Height = 2655
Left = 120
TabIndex = 0
Top = 1680
Width = 9135
_ExtentX = 16113
_ExtentY = 4683
_Version = 393216
HeadLines = 1
RowHeight = 15
FormatLocked = -1 'True
AllowAddNew = -1 'True
AllowDelete = -1 'True
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 4
BeginProperty Column00
DataField = "批号"
Caption = "批号"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = "名称"
Caption = "名称"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column02
DataField = "型号"
Caption = "型号"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column03
DataField = "说明"
Caption = "说明"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
ColumnWidth = 2085.166
EndProperty
BeginProperty Column01
ColumnWidth = 2085.166
EndProperty
BeginProperty Column02
ColumnWidth = 2085.166
EndProperty
BeginProperty Column03
ColumnWidth = 2085.166
EndProperty
EndProperty
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 120
Top = 4440
Width = 2895
_ExtentX = 5106
_ExtentY = 661
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= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=wl.mdb;Mode=ReadWrite|Share Deny None;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=wl.mdb;Mode=ReadWrite|Share Deny None;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "kcdh"
Caption = "浏览"
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
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
On Error Resume Next
Adodc1.Recordset.Save
End Sub
Private Sub Command2_Click()
On Error Resume Next
Adodc1.Recordset.Delete
End Sub
Private Sub Command3_Click()
On Error Resume Next
Adodc1.Recordset.AddNew
End Sub
Private Sub Command4_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -