📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BorderStyle = 4 'Fixed ToolWindow
Caption = "Form1"
ClientHeight = 3495
ClientLeft = 45
ClientTop = 315
ClientWidth = 3720
ClipControls = 0 'False
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3495
ScaleWidth = 3720
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "下一步"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 840
TabIndex = 5
Top = 2640
Width = 1575
End
Begin VB.TextBox Text2
Height = 375
IMEMode = 3 'DISABLE
Left = 1560
PasswordChar = "*"
TabIndex = 4
Top = 2040
Width = 1815
End
Begin VB.TextBox Text1
Height = 375
Left = 1560
TabIndex = 2
Top = 1320
Width = 1815
End
Begin VB.Label Label3
Caption = "密码"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 600
TabIndex = 3
Top = 2040
Width = 735
End
Begin VB.Label Label2
Caption = "用户名"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 600
TabIndex = 1
Top = 1320
Width = 735
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "个人信息管理系统"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 720
TabIndex = 0
Top = 600
Width = 2520
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
SQLUserName = Text1.Text
SQLPassword = Text2.Text
On Error GoTo errorcontrol
MyConnection.ConnectionString = "driver={SQL Server};" _
& "server=HQU-E211886BEAB;uid=" & SQLUserName _
& ";pwd=" & SQLPassword _
& ";database=PInformation"
MyConnection.ConnectionTimeout = 30
MyConnection.Open
Form3.Show
Unload Me
Exit Sub
errorcontrol:
MsgBox " 登录失败! ", vbOKOnly, "错误"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -