home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form PassForm
- Caption = "Password"
- ClientHeight = 540
- ClientLeft = 2475
- ClientTop = 3495
- ClientWidth = 4230
- ControlBox = 0 'False
- Height = 945
- Left = 2415
- LinkTopic = "Form2"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 540
- ScaleWidth = 4230
- Top = 3150
- Visible = 0 'False
- Width = 4350
- Begin Label Label1
- BorderStyle = 1 'Fixed Single
- Height = 255
- Left = 240
- TabIndex = 0
- Top = 120
- Width = 3855
- End
- Dim PassFormPassWord As String
- Sub Form_GotFocus ()
- PassFormPassWord = ""
- PassForm.Label1.Caption = ""
- End Sub
- Sub Form_KeyPress (KeyAscii As Integer)
- If KeyAscii = 13 Then
- PassForm.Visible = False
- If PassForm.Caption = "Master Password" Then
- If PassFormPassWord = MasterPassword Then
- Call SetupMaint
- MantForm.Visible = True
- End If
- Else
- If PassFormPassWord = ProgramPassword Then
- X = Shell(ProgramName, 1)
- End
- Else
- MsgBox "Wrong Password", 0, "Sorry"
- Launch_Form.Visible = True
- End If
- End If
- End If
- If KeyAscii = 8 Then
- If Len(PassFormPassWord) > 0 Then PassFormPassWord = Left$(PassFormPassWord, Len(PassFormPassWord) - 1)
- Else
- PassFormPassWord = PassFormPassWord + Chr$(KeyAscii)
- End If
- PassForm.Label1.Caption = String$(Len(PassFormPassWord), "*")
- End Sub
- Sub MaskedEdit1_KeyPress (KeyAscii As Integer)
- If KeyAscii = 13 Then
- PassForm.Visible = False
- Launch_Form.Visible = True
- End If
- End Sub
- Sub Text1_KeyPress (KeyAscii As Integer)
- If KeyAscii = 13 Then
- PassForm.Visible = False
- End If
- End Sub
-