📄 frmmainpassword.frm
字号:
VERSION 5.00
Begin VB.Form frmMainPassword
BackColor = &H00FF8080&
ClientHeight = 3180
ClientLeft = 3600
ClientTop = 2265
ClientWidth = 8235
ControlBox = 0 'False
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 178
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
LinkTopic = "Form1"
ScaleHeight = 3180
ScaleWidth = 8235
Begin VB.Timer Timer1
Enabled = 0 'False
Interval = 250
Left = 6000
Top = 840
End
Begin VB.Timer Timer2
Enabled = 0 'False
Interval = 125
Left = 6480
Top = 840
End
Begin VB.TextBox txtPassword
Height = 360
IMEMode = 3 'DISABLE
Left = 2280
PasswordChar = "*"
TabIndex = 1
Tag = "paradise"
Text = "paradise"
Top = 2160
Width = 2655
End
Begin VB.TextBox txtUserName
Height = 360
Left = 2280
TabIndex = 0
Tag = "tphadmin"
Text = "tphadmin"
Top = 1560
Width = 2655
End
Begin Project1.XPButton cmdOk
Height = 375
Left = 5760
TabIndex = 2
Top = 1440
Width = 1575
_extentx = 2778
_extenty = 661
font = "frmMainPassword.frx":0000
caption = "Ok"
forecolor = 255
forehover = 16711680
End
Begin Project1.XPButton cmdExit
Height = 375
Left = 5760
TabIndex = 3
Top = 2160
Width = 1575
_extentx = 2778
_extenty = 661
font = "frmMainPassword.frx":002C
caption = "Exit"
forecolor = 255
forehover = 16711680
End
Begin VB.Label back
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Please enter your username and password"
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Left = 360
TabIndex = 8
Top = 960
Visible = 0 'False
Width = 4890
End
Begin VB.Label front
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Please enter your username and password"
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C0C0C0&
Height = 285
Left = 360
TabIndex = 7
Top = 960
Width = 4890
End
Begin VB.Image Image7
Height = 480
Left = 120
Picture = "frmMainPassword.frx":0058
Top = 120
Width = 480
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Login !!"
BeginProperty Font
Name = "Comic Sans MS"
Size = 11.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FFFF&
Height = 315
Left = 720
TabIndex = 6
Top = 120
Width = 765
End
Begin VB.Image Image2
Height = 90
Left = 0
Picture = "frmMainPassword.frx":049A
Top = 360
Width = 21375
End
Begin VB.Image Image1
Height = 360
Left = -1200
Picture = "frmMainPassword.frx":6914
Top = 0
Width = 10350
End
Begin VB.Label Label3
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Password"
ForeColor = &H00000000&
Height = 240
Left = 720
TabIndex = 5
Top = 2280
Width = 1035
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "User Name"
ForeColor = &H00000000&
Height = 240
Left = 720
TabIndex = 4
Top = 1560
Width = 1185
End
End
Attribute VB_Name = "frmMainPassword"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdExit_Click()
If MsgBox("Are you sure you want to exit Hotel Mangement Sytem ?", vbQuestion + vbYesNo, "Confirm Exit !") = vbYes Then
End
End If
End Sub
Private Sub cmdOk_Click()
If txtUserName.Text = txtUserName.Tag Then
If txtPassword.Text = txtPassword.Tag Then
frmMain.Show
Unload Me
Else
MsgBox "The password you have entered is incorrect, Please try again.", vbCritical, "Wrong Entry !!"
txtPassword.Text = ""
End If
Else
MsgBox "The User Name and the password you have entered is incorrect, Please try again.", vbCritical, "Wrong Entry !!"
txtUserName.Text = ""
txtPassword.Text = ""
End If
End Sub
Private Sub Form_Load()
Timer1.Enabled = True
Timer2.Enabled = True
End Sub
Private Sub Timer1_Timer()
front.ForeColor = vbYellow
End Sub
Private Sub Timer2_Timer()
front.ForeColor = vbRed
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -