📄 招生计划.frm
字号:
VERSION 5.00
Begin VB.Form zhaosheng1
Caption = "招生计划"
ClientHeight = 3900
ClientLeft = 60
ClientTop = 450
ClientWidth = 5430
ControlBox = 0 'False
LinkTopic = "Form2"
ScaleHeight = 3900
ScaleWidth = 5430
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command3
Caption = "修 改"
Height = 375
Left = 480
TabIndex = 8
Top = 3240
Width = 1215
End
Begin VB.TextBox Text1
Height = 300
Index = 0
Left = 2640
TabIndex = 7
Top = 360
Width = 1335
End
Begin VB.TextBox Text1
Height = 300
Index = 1
Left = 2640
TabIndex = 6
Top = 1320
Width = 1335
End
Begin VB.CommandButton Command2
Caption = "保 存"
Height = 375
Left = 2160
TabIndex = 5
Top = 3240
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "退 出"
Height = 375
Left = 3840
TabIndex = 4
Top = 3240
Width = 1215
End
Begin VB.TextBox Text1
Height = 300
Index = 2
Left = 2708
TabIndex = 0
Top = 2310
Width = 1335
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "招生人数"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1395
TabIndex = 3
Top = 2310
Width = 1095
End
Begin VB.Label Label3
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "专 业"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 1395
TabIndex = 2
Top = 390
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "省 份"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 1395
TabIndex = 1
Top = 1350
Width = 720
End
End
Attribute VB_Name = "zhaosheng1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Unload zhaosheng1
End Sub
Private Sub Command2_Click()
For i = 0 To 2
rs_cx.Fields(i) = Text1(i).Text
Next i
rs_cx.Update
For i = 0 To 2
Text1(i).Enabled = False
Next i
End Sub
Private Sub Command3_Click()
For i = 0 To 2
Text1(i).Enabled = True
Next i
End Sub
Private Sub Form_Load()
Dim sql_stu As String
sql_stu = "select * from 招生计划"
rs_cx.Open sql_stu, conn, adOpenStatic, adLockOptimistic
For i = 0 To 2
Text1(i).Text = rs_cx.Fields(i)
Next i
For i = 0 To 2
Text1(i).Enabled = False
Next i
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -