?? frmpasswordset.frm
字號:
VERSION 5.00
Begin VB.Form frmPassWordSet
BorderStyle = 3 'Fixed Dialog
Caption = "設置新密碼"
ClientHeight = 1770
ClientLeft = 30
ClientTop = 330
ClientWidth = 4200
Icon = "frmPassWordSet.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1770
ScaleWidth = 4200
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame2
Height = 1560
Left = 120
TabIndex = 4
Top = 72
Width = 2676
Begin VB.TextBox txtSpecPass1
Height = 324
IMEMode = 3 'DISABLE
Left = 660
PasswordChar = "*"
TabIndex = 0
Top = 336
Width = 1812
End
Begin VB.TextBox txtSpecPass2
Height = 324
IMEMode = 3 'DISABLE
Left = 660
PasswordChar = "*"
TabIndex = 1
Top = 900
Width = 1812
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "確認:"
Height = 180
Left = 168
TabIndex = 6
Top = 912
Width = 540
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "密碼:"
Height = 180
Left = 168
TabIndex = 5
Top = 348
Width = 540
End
End
Begin VB.CommandButton cmdOK
Caption = "確認"
Default = -1 'True
Height = 360
Left = 2988
TabIndex = 2
Top = 360
Width = 1068
End
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "取消"
Height = 360
Left = 2988
TabIndex = 3
Top = 972
Width = 1068
End
End
Attribute VB_Name = "frmPassWordSet"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub cmdOK_Click()
txtSpecPass1.Text = Trim(txtSpecPass1.Text)
txtSpecPass2.Text = Trim(txtSpecPass2.Text)
If txtSpecPass1.Text = "" Then
MsgBox "請輸入密碼"
txtSpecPass1.SetFocus
Exit Sub
ElseIf txtSpecPass2.Text <> txtSpecPass1.Text Then
MsgBox "密碼確認不正確"
txtSpecPass1.Text = ""
txtSpecPass2.Text = ""
txtSpecPass1.SetFocus
Exit Sub
End If
SaveSetting "SEP", "PassWord", "SpecPassWord", txtSpecPass1.Text
g_SpecPassWord = txtSpecPass1.Text
Unload Me
End Sub
Private Sub Form_Load()
txtSpecPass1.Text = GetSetting("SEP", "PassWord", "g_SpecPassWord")
txtSpecPass2.Text = GetSetting("SEP", "PassWord", "g_SpecPassWord")
End Sub
Private Sub txtSpecPass1_GotFocus()
txtSpecPass1.SelStart = 0
txtSpecPass1.SelLength = Len(txtSpecPass1.Text)
End Sub
Private Sub txtSpecPass2_GotFocus()
txtSpecPass2.SelStart = 0
txtSpecPass2.SelLength = Len(txtSpecPass2.Text)
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -