home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Mother of All Windows Books
/
CD-MOM.iso
/
cd_mom
/
newsletr
/
vbz
/
vbz1-3
/
ssgetpw.frm
< prev
next >
Wrap
Text File
|
1993-06-24
|
3KB
|
103 lines
VERSION 2.00
Begin Form frmGetPW
BorderStyle = 3 'Fixed Double
Caption = "Screen Saver"
Height = 3315
Left = 1665
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2910
ScaleWidth = 4335
Top = 1635
Width = 4455
Begin CommandButton Command2
Cancel = -1 'True
Caption = "Cancel"
Height = 495
Left = 2760
TabIndex = 5
Top = 2040
Width = 1095
End
Begin CommandButton Command1
Caption = "Ok"
Default = -1 'True
Height = 495
Left = 480
TabIndex = 4
Top = 2040
Width = 1095
End
Begin TextBox txtPassWord
Height = 420
Left = 1920
MaxLength = 20
PasswordChar = "*"
TabIndex = 3
Top = 1275
Width = 2055
End
Begin Label Label3
Caption = "Password:"
Height = 255
Left = 720
TabIndex = 2
Top = 1395
Width = 975
End
Begin Label Label2
BackStyle = 0 'Transparent
Caption = "!"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 27.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 615
Left = 300
TabIndex = 1
Top = 120
Width = 135
End
Begin Shape Shape1
BackColor = &H0000FFFF&
BackStyle = 1 'Opaque
Height = 495
Left = 120
Shape = 3 'Circle
Top = 195
Width = 495
End
Begin Label Label1
Caption = "The screen saver you are using is password protected. You must type in the screen save password to turn off the screen saver."
Height = 975
Left = 840
TabIndex = 0
Top = 195
Width = 3255
End
End
Sub Command1_Click ()
Text$ = txtPassWord.Text
EncryptString Text$
If Text$ = IniPassword$ Then
EnteredCorrectPassword = True
Else
Title$ = "Screen Saver"
Mess$ = "Incorrect password;" + Chr$(13) + Chr$(13) + "Check your screen saver password and try again."
MsgBox Mess$, 16, Title$
Ok = DoEvents()
EnteredCorrectPassword = False
End If
Unload Me
End Sub
Sub Command2_Click ()
EnteredCorrectPassword = False
Unload Me
End Sub