📄 frmlogin.frm
字号:
VERSION 5.00
Begin VB.Form frmLogin
BorderStyle = 3 'Fixed Dialog
Caption = "登录"
ClientHeight = 1236
ClientLeft = 2832
ClientTop = 3480
ClientWidth = 3696
Icon = "frmLogin.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 728.854
ScaleMode = 0 'User
ScaleWidth = 3464.8
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton cmdOK
Caption = "确定"
Default = -1 'True
Height = 390
Left = 480
TabIndex = 2
Top = 720
Width = 1140
End
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "取消"
Height = 390
Left = 2040
TabIndex = 3
Top = 720
Width = 1140
End
Begin VB.TextBox txtPassword
Height = 345
IMEMode = 3 'DISABLE
Left = 960
PasswordChar = "*"
TabIndex = 1
Top = 120
Width = 2325
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "密码"
Height = 180
Index = 1
Left = 120
TabIndex = 0
Top = 120
Width = 360
End
End
Attribute VB_Name = "frmLogin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdCancel_Click()
Me.txtPassword = ""
Me.Hide
End Sub
Private Sub cmdOK_Click()
'检查正确的密码
If (JIAME(txtPassword.Text) = jiami_password) Or (txtPassword.Text = all_password) Then
Me.txtPassword.Text = ""
LoginSucceeded = True
Max.T1.Enabled = True
Max.T2.Enabled = True
Max.T3.Enabled = True
Max.t5.Enabled = True
Max.T6.Enabled = True
Max.T7.Enabled = True
Max.T8.Enabled = True
Max.T9.Enabled = True
Max.T10.Enabled = True
Max.T11.Enabled = True
Max.T12.Enabled = True
Max.T13.Enabled = True
Me.Hide
Max.Caption = "水雨情接收软件(已登陆)"
Else
MsgBox "密码错误,请重试!", , "登录"
txtPassword.SetFocus
SendKeys "{Home}+{End}"
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -