📄 jsjchj.frm
字号:
VERSION 5.00
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Begin VB.Form jsjchj
BackColor = &H00800000&
Caption = "计算机成绩表"
ClientHeight = 6315
ClientLeft = -30
ClientTop = 255
ClientWidth = 9330
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
ScaleHeight = 6315
ScaleWidth = 9330
Begin VB.CommandButton DeleteCommand
Caption = "删除"
Height = 375
Left = 2400
TabIndex = 7
Top = 5760
Width = 855
End
Begin VB.CommandButton sortCommand
Caption = "排序"
Height = 375
Left = 7680
Style = 1 'Graphical
TabIndex = 6
Top = 5760
Width = 855
End
Begin VB.CommandButton Command5
Caption = "添加"
Height = 375
Left = 1080
TabIndex = 5
Top = 5760
Width = 855
End
Begin VB.CommandButton Command4
Caption = "修改"
Height = 375
Left = 3720
TabIndex = 4
Top = 5760
Width = 855
End
Begin VB.CommandButton Command3
Caption = "检索"
Height = 375
Left = 6360
Style = 1 'Graphical
TabIndex = 3
Top = 5760
Width = 855
End
Begin VB.CommandButton Command1
Caption = "查找"
Height = 375
Left = 5040
TabIndex = 2
Top = 5760
Width = 855
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "D:\vb\学生档案管理系统.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 345
Left = 480
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "计算机成绩表"
Top = 240
Visible = 0 'False
Width = 1140
End
Begin MSDBGrid.DBGrid DBGrid1
Bindings = "jsjchj.frx":0000
Height = 4695
Left = 15
OleObjectBlob = "jsjchj.frx":0014
TabIndex = 1
Top = 960
Width = 9300
End
Begin VB.Label Label1
AutoSize = -1 'True
BackColor = &H00800000&
Caption = "计算机成绩表"
BeginProperty Font
Name = "隶书"
Size = 24
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFC0C0&
Height = 495
Left = 3240
TabIndex = 0
Top = 240
Width = 2880
End
End
Attribute VB_Name = "jsjchj"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
chzhcht.Text1.Text = ""
chzhcht.Text2.Text = ""
chzhcht.Command7.Visible = False
chzhcht.Command8.Visible = False
chzhcht.Command9.Visible = False
chzhcht.Command4.Visible = False
chzhcht.Command5.Visible = False
chzhcht.Command6.Visible = False
chzhcht.Command1.Visible = True
chzhcht.Command2.Visible = True
chzhcht.Command3.Visible = True
chzhcht.Show
End Sub
Private Sub DeleteCommand_Click()
YesNo = MsgBox("真的要删除吗?", vbYesNo + vbQuestion + vbDefaultButton2)
If YesNo <> vbYes Then
Exit Sub
End If
If Data1.Recordset.RecordCount > 0 Then
Data1.Recordset.Delete
Data1.Recordset.MovePrevious
End If
End Sub
Private Sub Command3_Click()
dtjchx.Show
End Sub
Private Sub Command4_Click()
jsjtj.Label11.Caption = "请调整要修改的信息"
jsjtj.Caption = "修改"
jsjtj.Command3.Visible = True
jsjtj.Command4.Visible = False
jsjtj.Command5.Visible = False
jsjtj.Label12.Visible = False
jsjtj.Label13.Visible = False
jsjtj.Label14.Visible = False
jsjtj.Label15.Visible = False
jsjtj.Label16.Visible = False
jsjtj.Label17.Visible = False
jsjtj.Label18.Visible = False
jsjtj.Text1.Text = jsjchj.Data1.Recordset.Fields("学号")
jsjtj.Text2.Text = jsjchj.Data1.Recordset.Fields("姓名")
jsjtj.Text3.Text = jsjchj.Data1.Recordset.Fields("大学英语")
jsjtj.Text4.Text = jsjchj.Data1.Recordset.Fields("高等数学")
jsjtj.Text5.Text = jsjchj.Data1.Recordset.Fields("计算机导论")
jsjtj.Text6.Text = jsjchj.Data1.Recordset.Fields("数据库")
jsjtj.Text7.Text = jsjchj.Data1.Recordset.Fields("专业外语")
jsjtj.Text8.Text = jsjchj.Data1.Recordset.Fields("数据结构")
jsjtj.Text9.Text = jsjchj.Data1.Recordset.Fields("汇编语言")
jsjtj.Text10.Text = jsjchj.Data1.Recordset.Fields("VB开发")
jsjtj.Show
End Sub
Private Sub Command5_Click()
jsjtj.Show
jsjtj.Command3.Visible = False
jsjtj.Command4.Visible = False
jsjtj.Command5.Visible = False
jsjtj.Label12.Visible = False
jsjtj.Label13.Visible = False
jsjtj.Label14.Visible = False
jsjtj.Label15.Visible = False
jsjtj.Label16.Visible = False
jsjtj.Label17.Visible = False
jsjtj.Label18.Visible = False
End Sub
Private Sub sortCommand_Click()
jsjpx.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -