📄 frmzhuche.frm
字号:
VERSION 5.00
Begin VB.Form Form7
Caption = "欢迎您!"
ClientHeight = 3615
ClientLeft = 60
ClientTop = 450
ClientWidth = 5355
LinkTopic = "Form7"
ScaleHeight = 3615
ScaleWidth = 5355
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command4
Caption = "返回"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1560
TabIndex = 9
Top = 2880
Visible = 0 'False
Width = 1815
End
Begin VB.CommandButton Command3
Caption = "返回"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 3240
TabIndex = 7
Top = 2400
Width = 1335
End
Begin VB.CommandButton Command2
Caption = "取消"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1680
TabIndex = 6
Top = 2400
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "确定"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 120
TabIndex = 5
Top = 2400
Width = 1335
End
Begin VB.TextBox Text2
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1920
TabIndex = 4
Top = 1560
Width = 1935
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1920
TabIndex = 3
Top = 840
Width = 1935
End
Begin VB.Label Label4
Caption = "感谢您使用本系统 "
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 2655
Left = 600
TabIndex = 8
Top = 360
Visible = 0 'False
Width = 4455
End
Begin VB.Label Label3
Caption = "密码:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 600
TabIndex = 2
Top = 1680
Width = 975
End
Begin VB.Label Label2
Caption = "用户名:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 600
TabIndex = 1
Top = 960
Width = 1095
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = "请输入新的用户名和密码"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 360
TabIndex = 0
Top = 120
Width = 3735
End
End
Attribute VB_Name = "Form7"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Const Con_DBpath As String = "db1.mdb"
Public Glb_MyWkSp As Workspace
Public Glb_MyDB As Database
Private Sub Command1_Click()
If Text1.Text = "" Then
response = MsgBox("请输入用户名.", vbOKOnly, "错误")
Exit Sub
End If
If Text2.Text = "" Then
response = MsgBox("请输入密码.", vbOKOnly, "错误")
Exit Sub
End If
Set Glb_MyWkSp = Workspaces(0)
Set Glb_MyDB = Glb_MyWkSp.OpenDatabase(Con_DBpath)
SQLStr = "INSERT INTO yhb VALUES ('" & Text1.Text & "','" & Text2.Text & "')"
Glb_MyDB.Execute SQLStr
response = MsgBox("登录成功,你的用户名是:" & Text1.Text & ";你的密码是:" & Text2.Text & ".", vbOKOnly, "成功")
Exit Sub
End Sub
Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
End Sub
Private Sub Command3_Click()
Form1.Show
Form7.Hide
End Sub
Private Sub Command4_Click()
Form7.Hide
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -