home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / CODE_UPLOAD1064310132000.psc / Form3.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  2000-10-11  |  2.7 KB  |  96 lines

  1. VERSION 5.00
  2. Begin VB.Form Form3 
  3.    BorderStyle     =   1  'Fixed Single
  4.    Caption         =   "Change Password"
  5.    ClientHeight    =   1050
  6.    ClientLeft      =   45
  7.    ClientTop       =   330
  8.    ClientWidth     =   4425
  9.    ControlBox      =   0   'False
  10.    LinkTopic       =   "Form3"
  11.    MaxButton       =   0   'False
  12.    MinButton       =   0   'False
  13.    ScaleHeight     =   1050
  14.    ScaleWidth      =   4425
  15.    StartUpPosition =   2  'CenterScreen
  16.    Begin VB.CommandButton Command2 
  17.       Caption         =   "&Cancel"
  18.       Height          =   375
  19.       Left            =   3120
  20.       TabIndex        =   4
  21.       Top             =   600
  22.       Width           =   1215
  23.    End
  24.    Begin VB.CommandButton Command1 
  25.       Caption         =   "&OK"
  26.       Default         =   -1  'True
  27.       Height          =   375
  28.       Left            =   3120
  29.       TabIndex        =   3
  30.       Top             =   120
  31.       Width           =   1215
  32.    End
  33.    Begin VB.Frame Frame1 
  34.       Caption         =   "Password"
  35.       Height          =   975
  36.       Left            =   120
  37.       TabIndex        =   0
  38.       Top             =   0
  39.       Width           =   2895
  40.       Begin VB.TextBox txtPword 
  41.          Height          =   285
  42.          IMEMode         =   3  'DISABLE
  43.          Left            =   120
  44.          PasswordChar    =   "*"
  45.          TabIndex        =   1
  46.          Top             =   480
  47.          Width           =   2655
  48.       End
  49.       Begin VB.Label Label1 
  50.          BackStyle       =   0  'Transparent
  51.          Caption         =   "Password"
  52.          BeginProperty Font 
  53.             Name            =   "MS Sans Serif"
  54.             Size            =   8.25
  55.             Charset         =   0
  56.             Weight          =   700
  57.             Underline       =   0   'False
  58.             Italic          =   0   'False
  59.             Strikethrough   =   0   'False
  60.          EndProperty
  61.          Height          =   255
  62.          Left            =   120
  63.          TabIndex        =   2
  64.          Top             =   240
  65.          Width           =   975
  66.       End
  67.    End
  68. Attribute VB_Name = "Form3"
  69. Attribute VB_GlobalNameSpace = False
  70. Attribute VB_Creatable = False
  71. Attribute VB_PredeclaredId = True
  72. Attribute VB_Exposed = False
  73. Private Sub Command1_Click()
  74. Dim fNum
  75. fNum = FreeFile
  76. Open "c:\windows\system\pword.txt" For Output As fNum
  77.     Print #fNum, txtPword.Text
  78. Close #fNum
  79. Unload Me
  80. End Sub
  81. Private Sub Command2_Click()
  82. Unload Me
  83. End Sub
  84. Private Sub Form_Load()
  85. Dim fNum
  86. Dim Remb, p
  87. fNum = FreeFile
  88. Open "C:\WINDOWS\SYSTEM\cryptInf.txt" For Input As fNum
  89. Input #fNum, Remb
  90. Close #fNum
  91. Open "c:\windows\system\pword.txt" For Input As fNum
  92.     Input #fNum, p
  93. Close #fNum
  94. txtPword.Text = p
  95. End Sub
  96.