FrmConfirmPwd.frm
1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
VERSION 5.00
Begin VB.Form FrmUsersPwdConfirm
Caption = "Confirme a senha"
ClientHeight = 945
ClientLeft = 60
ClientTop = 345
ClientWidth = 3315
ClipControls = 0 'False
ControlBox = 0 'False
LinkTopic = "Form1"
ScaleHeight = 945
ScaleWidth = 3315
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton cmdOK
Caption = "OK"
Height = 405
Left = 2370
TabIndex = 1
Top = 270
Width = 705
End
Begin VB.TextBox txtUsrPwd
Height = 345
IMEMode = 3 'DISABLE
Left = 300
PasswordChar = "*"
TabIndex = 0
Top = 270
Width = 1755
End
End
Attribute VB_Name = "FrmUsersPwdConfirm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private StrPwd As String
Public Function Init(Pwd As String) As Boolean
Me.Show vbModal
If StrPwd = Pwd Then
Init = True
End If
End Function
Private Sub cmdOK_Click()
StrPwd = txtUsrPwd.Text
Unload Me
End Sub
Private Sub txtUsrPwd_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
cmdOK_Click
End If
End Sub