pexam13_62.frm
来自「深圳大学的vb上机与教学的课件」· FRM 代码 · 共 165 行
FRM
165 行
VERSION 5.00
Begin VB.Form Form2
Caption = "系表维护"
ClientHeight = 2100
ClientLeft = 60
ClientTop = 345
ClientWidth = 4875
LinkTopic = "Form2"
ScaleHeight = 2100
ScaleWidth = 4875
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command8
Caption = ">|"
Height = 495
Left = 1680
TabIndex = 12
Top = 1440
Width = 500
End
Begin VB.CommandButton Command7
Caption = ">"
Height = 495
Left = 1200
TabIndex = 11
Top = 1440
Width = 500
End
Begin VB.CommandButton Command6
Caption = "<"
Height = 495
Left = 720
TabIndex = 10
Top = 1440
Width = 500
End
Begin VB.CommandButton Command5
Caption = "|<"
Height = 495
Left = 240
TabIndex = 9
Top = 1440
Width = 500
End
Begin VB.CommandButton Command4
Caption = "关闭"
Height = 495
Left = 4080
TabIndex = 8
Top = 1440
Width = 600
End
Begin VB.CommandButton Command3
Caption = "更新"
Height = 495
Left = 3480
TabIndex = 7
Top = 1440
Width = 600
End
Begin VB.CommandButton Command2
Caption = "删除"
Height = 495
Left = 2880
TabIndex = 6
Top = 1440
Width = 600
End
Begin VB.CommandButton Command1
Caption = "添加"
Height = 495
Left = 2280
TabIndex = 5
Top = 1440
Width = 600
End
Begin VB.PictureBox Picture1
Height = 1215
Left = 120
ScaleHeight = 1155
ScaleWidth = 4515
TabIndex = 0
Top = 120
Width = 4575
Begin VB.TextBox Text1
Height = 375
Left = 1080
TabIndex = 2
Top = 120
Width = 1455
End
Begin VB.TextBox Text2
Height = 375
Left = 1080
TabIndex = 1
Top = 600
Width = 3375
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "系 编 号:"
Height = 180
Index = 0
Left = 120
TabIndex = 4
Top = 240
Width = 900
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "系 名 称:"
Height = 180
Index = 1
Left = 120
TabIndex = 3
Top = 690
Width = 900
End
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Form1.Adodc1.Recordset.AddNew
End Sub
Private Sub Command2_Click()
Form1.Adodc1.Recordset.Delete
Form1.Adodc1.Recordset.MoveNext
End Sub
Private Sub Command3_Click()
Form1.Adodc1.Recordset.Update
End Sub
Private Sub Command4_Click()
Unload Me
End Sub
Private Sub Command5_Click()
Form1.Adodc1.Recordset.MoveFirst
End Sub
Private Sub Command6_Click()
If Not Form1.Adodc1.Recordset.BOF Then
Form1.Adodc1.Recordset.MovePrevious
End If
End Sub
Private Sub Command7_Click()
If Not Form1.Adodc1.Recordset.EOF Then
Form1.Adodc1.Recordset.MoveNext
End If
End Sub
Private Sub Command8_Click()
Form1.Adodc1.Recordset.MoveLast
End Sub
Private Sub Form_Activate()
Form1.Adodc1.RecordSource = tabstring
Form1.Adodc1.Refresh
Set Text1.DataSource = Form1.Adodc1
Text1.DataField = "系编号"
Set Text2.DataSource = Form1.Adodc1
Text2.DataField = "系名称"
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?