?? frmsetpass.frm
字號:
VERSION 5.00
Begin VB.Form frmSetPass
BorderStyle = 3 'Fixed Dialog
Caption = "密碼修改"
ClientHeight = 2760
ClientLeft = 45
ClientTop = 330
ClientWidth = 4410
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2760
ScaleWidth = 4410
ShowInTaskbar = 0 'False
StartUpPosition = 1 'CenterOwner
Begin VB.TextBox txtConPass
Height = 375
Left = 1320
TabIndex = 7
Top = 1440
Width = 2415
End
Begin VB.TextBox txtNewPass
Height = 375
Left = 1320
TabIndex = 6
Top = 840
Width = 2415
End
Begin VB.CommandButton cmdCancel
Caption = "取消(&C)"
Height = 375
Left = 2280
TabIndex = 3
Top = 2160
Width = 1335
End
Begin VB.CommandButton cmdOk
Caption = "確定(&O)"
Height = 375
Left = 600
TabIndex = 2
Top = 2160
Width = 1335
End
Begin VB.TextBox txtOldPass
Height = 375
Left = 1320
TabIndex = 1
Top = 240
Width = 2415
End
Begin VB.Label Label3
Caption = "確認新密碼"
Height = 255
Left = 120
TabIndex = 5
Top = 1560
Width = 975
End
Begin VB.Label Label2
Caption = "設(shè)備新密碼"
Height = 255
Left = 120
TabIndex = 4
Top = 960
Width = 1095
End
Begin VB.Label Label1
Caption = "設(shè)備舊密碼"
Height = 255
Left = 120
TabIndex = 0
Top = 360
Width = 975
End
End
Attribute VB_Name = "frmSetPass"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'Option Explicit'
Public OkOrNot As Boolean
Private Sub cmdCancel_Click()
OkOrNot = False
Hide
End Sub
Private Sub cmdOk_Click()
OkOrNot = True
Hide
End Sub
Private Sub Form_Load()
OkOrNot = False
cmdOk.Enabled = False
End Sub
Private Sub txtConPass_Change()
If Len(Trim(txtOldPass.Text)) = 0 Then
MsgBox "原設(shè)備密碼不能為空"
End If
If txtConPass.Text = txtNewPass.Text Then
cmdOk.Enabled = True
Else
cmdOk.Enabled = False
End If
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -