?? exitpass.frm
字號(hào):
VERSION 5.00
Begin VB.Form ExitP
Caption = "設(shè)置退出密碼"
ClientHeight = 2940
ClientLeft = 60
ClientTop = 345
ClientWidth = 4305
Icon = "Exitpass.frx":0000
LinkTopic = "Form1"
ScaleHeight = 2940
ScaleWidth = 4305
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "取消"
Height = 345
Left = 2370
TabIndex = 8
Top = 2610
Width = 1065
End
Begin VB.CommandButton Command1
Caption = "確認(rèn)"
Height = 345
Left = 600
TabIndex = 7
Top = 2610
Width = 1065
End
Begin VB.Frame Frame1
Caption = "修改退出密碼"
Height = 2505
Left = 60
TabIndex = 0
Top = 60
Width = 4095
Begin VB.TextBox T4
Height = 315
IMEMode = 3 'DISABLE
Left = 1710
PasswordChar = "*"
TabIndex = 10
Top = 1140
Visible = 0 'False
Width = 1455
End
Begin VB.TextBox T3
Height = 345
IMEMode = 3 'DISABLE
Left = 1530
MaxLength = 6
PasswordChar = "$"
TabIndex = 6
Top = 1470
Width = 1215
End
Begin VB.TextBox T2
Height = 345
IMEMode = 3 'DISABLE
Left = 1530
MaxLength = 6
PasswordChar = "0"
TabIndex = 5
Top = 960
Width = 1215
End
Begin VB.TextBox T1
Height = 345
IMEMode = 3 'DISABLE
Left = 1530
MaxLength = 6
PasswordChar = "*"
TabIndex = 2
Top = 360
Width = 1215
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "輸入退出密碼"
Height = 180
Index = 3
Left = 540
TabIndex = 9
Top = 1200
Visible = 0 'False
Width = 1080
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "輸入新密碼"
Height = 180
Index = 1
Left = 540
TabIndex = 4
Top = 990
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "再次輸入密碼"
Height = 180
Index = 2
Left = 360
TabIndex = 3
Top = 1530
Width = 1080
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "輸入舊密碼"
Height = 180
Index = 0
Left = 540
TabIndex = 1
Top = 420
Width = 900
End
End
End
Attribute VB_Name = "ExitP"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
If T2.Text <> T3.Text Then MsgBox "你輸入的密碼不一致" & Chr(13) & Chr(10) & "請(qǐng)重輸", , "重新輸入密碼": T2.SetFocus: Exit Sub
Call savestring(HKEY_LOCAL_MACHINE, "software\New Sun\Net Call Server", "ExitPW", CStr(ExitPassWord))
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
If Server.Ifexit = True Then
Dim a As Integer
For a = 0 To 2
Label1(a).Visible = False
Next
T1.Visible = False
T2.Visible = False
T3.Visible = False
T4.Visible = True
Label1(3).Visible = True
End Sub
Private Sub Label1_Click(Index As Integer)
End Sub
Private Sub T1_Change()
If Len(T1.Text) = 6 Then T2.SetFocus
End Sub
Private Sub T1_LostFocus()
Dim d As String
d = getstring(HKEY_LOCAL_MACHINE, "Software\New Sun\Net Call Server", "ExitPW")
If T1.Text <> d Then T1.SetFocus
End Sub
Private Sub T2_Change()
If Len(T2.Text) = 6 Then T3.SetFocus
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -