📄 frmlogin.frm
字号:
VERSION 5.00
Begin VB.Form frmLogin
BackColor = &H008080FF&
BorderStyle = 3 'Fixed Dialog
Caption = "连接"
ClientHeight = 2940
ClientLeft = 2835
ClientTop = 3480
ClientWidth = 4500
FillColor = &H00C00000&
ForeColor = &H00C00000&
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
Picture = "frmLogin.frx":0000
ScaleHeight = 1737.051
ScaleMode = 0 'User
ScaleWidth = 4225.256
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.TextBox km
Height = 345
IMEMode = 3 'DISABLE
Left = 1290
TabIndex = 1
Text = "student"
Top = 690
Width = 2325
End
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "取消"
Height = 390
Left = 2280
TabIndex = 5
Top = 2280
Width = 1140
End
Begin VB.TextBox fwqm
Height = 345
Left = 1290
TabIndex = 0
Text = "(local)"
Top = 135
Width = 2325
End
Begin VB.TextBox yhm
Height = 345
Left = 1290
TabIndex = 2
Text = "sa"
Top = 1200
Width = 2325
End
Begin VB.TextBox mm
Height = 345
IMEMode = 3 'DISABLE
Left = 1290
PasswordChar = "*"
TabIndex = 3
Text = "sa"
Top = 1800
Width = 2325
End
Begin VB.CommandButton cmdOK
Caption = "确定"
Default = -1 'True
Height = 390
Left = 240
TabIndex = 4
Top = 2280
Width = 1140
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "密码"
ForeColor = &H00000000&
Height = 375
Left = 120
TabIndex = 9
Top = 1800
Width = 735
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "用户名"
Height = 375
Left = 120
TabIndex = 8
Top = 1200
Width = 735
End
Begin VB.Label lblLabels
BackStyle = 0 'Transparent
Caption = "服务器名"
Height = 375
Index = 0
Left = 120
TabIndex = 6
Top = 150
Width = 735
End
Begin VB.Label lblLabels
BackStyle = 0 'Transparent
Caption = "数据库名"
Height = 375
Index = 1
Left = 120
TabIndex = 7
Top = 720
Width = 735
End
End
Attribute VB_Name = "frmLogin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub cmdOK_Click()
a = yhm.Text
b = mm.Text
d = fwqm.Text
Call st1
'Call st(a, b, d)
On Error GoTo err
con.Open
Unload Me
login.Show
con.Close
Exit Sub
err:
MsgBox "连接失败"
Exit Sub
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -