?? form4.frm
字號:
VERSION 5.00
Begin VB.Form Form4
BackColor = &H80000000&
Caption = "Form4"
ClientHeight = 3195
ClientLeft = 5640
ClientTop = 4320
ClientWidth = 4680
LinkTopic = "Form4"
Picture = "Form4.frx":0000
ScaleHeight = 3195
ScaleWidth = 4680
Begin VB.TextBox combo1
Height = 375
Left = 1680
TabIndex = 5
Top = 600
Width = 2415
End
Begin VB.TextBox txtPassword
Height = 375
IMEMode = 3 'DISABLE
Left = 1680
PasswordChar = "*"
TabIndex = 2
Top = 1440
Width = 2415
End
Begin VB.CommandButton cmdCancel
BackColor = &H80000004&
Cancel = -1 'True
Caption = "取消"
Height = 390
Left = 2760
Style = 1 'Graphical
TabIndex = 1
Top = 2490
Width = 1140
End
Begin VB.CommandButton cmdOK
BackColor = &H80000004&
Caption = "確定"
Default = -1 'True
Height = 390
Left = 810
Style = 1 'Graphical
TabIndex = 0
ToolTipText = "直接點擊可進入"
Top = 2445
Width = 1140
End
Begin VB.Label lblLabels
BackStyle = 0 'Transparent
Caption = "密 碼(&P):"
BeginProperty Font
Name = "隸書"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 315
Index = 1
Left = 360
TabIndex = 4
Top = 1470
Width = 1080
End
Begin VB.Label lblLabels
BackColor = &H80000004&
BackStyle = 0 'Transparent
Caption = "用戶名稱(&U):"
BeginProperty Font
Name = "隸書"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0080FF80&
Height = 315
Index = 0
Left = 360
TabIndex = 3
Top = 600
Width = 1080
End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
End
End Sub
Private Sub cmdOK_Click()
'檢查正確的密碼
If combo1.Text = "1" And txtPassword = "1" Or combo1.Text = "" And txtPassword = "" Then
'將代碼放在這里傳遞
'成功到 calling 函數
'設置全局變量時最容易的
LoginSucceeded = True
Me.Hide
Form2.Show
txtPassword = ""
Else
MsgBox "用戶名或密碼錯誤,請重試!", , "登錄"
combo1.SetFocus
txtPassword = ""
SendKeys "{Home}+{End}"
End If
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -