📄 newuser.frm
字号:
VERSION 5.00
Begin VB.Form newuser
Caption = "新用户注册"
ClientHeight = 3480
ClientLeft = 60
ClientTop = 450
ClientWidth = 3165
LinkTopic = "Form1"
ScaleHeight = 3480
ScaleWidth = 3165
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text3
Height = 375
Left = 1200
TabIndex = 7
Top = 1800
Width = 1695
End
Begin VB.TextBox Text2
Height = 375
Left = 1200
TabIndex = 6
Top = 960
Width = 1695
End
Begin VB.TextBox Text1
Height = 375
Left = 1200
TabIndex = 5
Top = 240
Width = 1695
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 495
Left = 240
TabIndex = 1
Top = 2640
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "取消"
Height = 495
Left = 1680
TabIndex = 0
Top = 2640
Width = 1215
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "姓名"
Height = 180
Left = 240
TabIndex = 4
Top = 1920
Width = 360
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "学号"
Height = 180
Left = 240
TabIndex = 3
Top = 1080
Width = 360
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "班级"
Height = 180
Left = 240
TabIndex = 2
Top = 240
Width = 360
End
End
Attribute VB_Name = "newuser"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim mrc As ADODB.Recordset
txtsql = "select * from 学生情况"
Set mrc = exesql(txtsql)
mrc.AddNew
mrc.Fields("班级") = Text1
mrc.Fields("学号") = Text2
mrc.Fields("姓名") = Text3
mrc.Update
mrc.Close
Text1 = ""
Text2 = ""
Text3 = ""
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Text3_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Command1_Click
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -