?? frmpassword.frm
字號:
VERSION 5.00
Begin VB.Form frmpassword
BackColor = &H00404040&
BorderStyle = 3 'Fixed Dialog
Caption = "Enter Password"
ClientHeight = 3720
ClientLeft = 3105
ClientTop = 3165
ClientWidth = 5985
ForeColor = &H00404040&
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3720
ScaleWidth = 5985
ShowInTaskbar = 0 'False
Begin VB.TextBox txtusername
Appearance = 0 'Flat
BackColor = &H00FFFFFF&
Height = 285
Left = 2400
MaxLength = 50
TabIndex = 0
Top = 1440
Width = 2265
End
Begin VB.TextBox txtpassword
Appearance = 0 'Flat
BackColor = &H00FFFFFF&
Height = 285
IMEMode = 3 'DISABLE
Left = 2400
MaxLength = 50
PasswordChar = "*"
TabIndex = 2
Top = 2040
Width = 2265
End
Begin VB.Label Label1
BackColor = &H80000007&
BackStyle = 0 'Transparent
Caption = "&Username :"
BeginProperty Font
Name = "Times New Roman"
Size = 11.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000C0&
Height = 255
Index = 0
Left = 960
TabIndex = 3
Top = 1440
Width = 1245
End
Begin VB.Label Label1
BackColor = &H80000007&
BackStyle = 0 'Transparent
Caption = "&Password :"
BeginProperty Font
Name = "Times New Roman"
Size = 11.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000C0&
Height = 255
Index = 1
Left = 1080
TabIndex = 1
Top = 2040
Width = 1245
End
Begin VB.Image Image1
Height = 3750
Left = 0
Picture = "frmpassword.frx":0000
Stretch = -1 'True
Top = 0
Width = 6015
End
End
Attribute VB_Name = "frmpassword"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub txtpassword_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtpassword = LCase(txtpassword.Text)
If (txtpassword.Text = "admin") Then
MsgBox "login into " & txtusername.Text, vbInformation, "login in"
frmain.Show
Unload Me
Else
MsgBox "login failes", vbCritical, "login failed"
txtusername.Text = ""
txtpassword.Text = ""
txtusername.SetFocus
End If
End If
End Sub
Private Sub txtusername_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtpassword.SetFocus
End If
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -