home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmNewPassword
- BorderStyle = 3 'Fixed Double
- Caption = "Set Password"
- ClientHeight = 1995
- ClientLeft = 3645
- ClientTop = 3540
- ClientWidth = 3750
- Height = 2400
- HelpContextID = 2016136
- Icon = "NEWPW.frx":0000
- Left = 3585
- LinkTopic = "Form1"
- LockControls = -1 'True
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1995
- ScaleWidth = 3750
- Top = 3195
- Width = 3870
- Begin VB.TextBox txtVerify
- Height = 285
- Left = 120
- MaxLength = 20
- PasswordChar = "*"
- TabIndex = 2
- Top = 1560
- Width = 1695
- End
- Begin VB.CommandButton cmdCancel
- Cancel = -1 'True
- Caption = "&Cancel"
- Default = -1 'True
- Height = 375
- Left = 2040
- TabIndex = 4
- Top = 960
- Width = 1575
- End
- Begin VB.CommandButton cmdOK
- Caption = "&OK"
- Height = 375
- Left = 2040
- TabIndex = 3
- Top = 360
- Width = 1575
- End
- Begin VB.TextBox txtNewPW
- Height = 285
- Left = 120
- MaxLength = 20
- PasswordChar = "*"
- TabIndex = 1
- Top = 960
- Width = 1695
- End
- Begin VB.TextBox txtOldPW
- Height = 285
- Left = 120
- PasswordChar = "*"
- TabIndex = 0
- Top = 360
- Width = 1695
- End
- Begin VB.Label lblLabels
- AutoSize = -1 'True
- Caption = "Verify:"
- Height = 195
- Index = 2
- Left = 120
- TabIndex = 7
- Top = 1320
- Width = 435
- End
- Begin VB.Label lblLabels
- AutoSize = -1 'True
- Caption = "New Password:"
- Height = 195
- Index = 1
- Left = 120
- TabIndex = 6
- Top = 720
- Width = 1110
- End
- Begin VB.Label lblLabels
- AutoSize = -1 'True
- Caption = "Old Password:"
- Height = 195
- Index = 0
- Left = 120
- TabIndex = 5
- Top = 120
- Width = 1020
- End
- Attribute VB_Name = "frmNewPassword"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cmdCancel_Click()
- Unload Me
- End Sub
- Private Sub cmdOK_Click()
- On Error GoTo OKErr
- Dim sTmp As String
- Dim usr As User
- If txtNewPW.Text <> txtVerify.Text Then
- Beep
- MsgBox "Invalid New Password Verification, try again.", 48
- txtVerify.SetFocus
- Exit Sub
- End If
- gwsMainWS.Users(gwsMainWS.UserName).NewPassword txtOldPW.Text, txtNewPW.Text
- Unload Me
- Exit Sub
- OKErr:
- ShowError
- Exit Sub
- End Sub
- Private Sub Form_Load()
- CenterMe Me, gnMDIFORM
- End Sub
-