2 Begin VB.Form EnterPassword
4 BackColor = &H00C0C0C0&
5 BorderStyle = 3 'Fixed Dialog
12 name = "MS Sans Serif"
18 strikethrough = 0 'False
20 ForeColor = &H80000008&
31 Begin VB.CommandButton CancelButton
33 BackColor = &H80000005&
41 Begin VB.CommandButton SetPass
43 BackColor = &H80000005&
44 Caption = "Change Password"
51 Begin VB.TextBox ConfPass
54 BackColor = &H00C0C0C0&
63 strikethrough = 0 'False
71 Begin VB.TextBox NewPass
74 BackColor = &H00C0C0C0&
83 strikethrough = 0 'False
91 Begin Threed.SSFrame Frame3D1
101 Caption = "Enter new password:"
103 Begin Threed.SSFrame Frame3D2
113 Caption = "Enter it again to verify:"
116 Attribute VB_Name = "EnterPassword"
117 Attribute VB_Creatable = False
118 Attribute VB_Exposed = False
120 Private Sub CancelButton_Click()
125 Private Sub ConfPass_Change()
126 If NewPass.Text <> "" And NewPass.Text = confpass.Text Then
127 SetPass.Enabled = True
129 SetPass.Enabled = False
134 Private Sub Form_Load()
137 EnterPassword.WindowState = 0
138 EnterPassword.Top = Int((MainWin.Height - EnterPassword.Height) / 3)
139 EnterPassword.Left = Int((MainWin.Width - EnterPassword.Width) / 2)
141 SetPass.Enabled = False
147 Private Sub NewPass_Change()
148 If NewPass.Text <> "" And NewPass.Text = confpass.Text Then
149 SetPass.Enabled = True
151 SetPass.Enabled = False
155 Private Sub SetPass_Click()
156 If begin_trans() = True Then
157 serv_puts ("SETP " + NewPass.Text)
159 If Left$(buf$, 1) <> "2" Then
160 MsgBox Right$(buf$, Len(buf$) - 4), 48