www.pudn.com > MSNChat.zip > frmRegistryLoc.frm


VERSION 5.00 
Begin VB.Form frmRegistryLoc  
   BackColor       =   &H00000000& 
   BorderStyle     =   1  'Fixed Single 
   Caption         =   "Regedit" 
   ClientHeight    =   1350 
   ClientLeft      =   45 
   ClientTop       =   330 
   ClientWidth     =   5130 
   Icon            =   "frmRegistryLoc.frx":0000 
   LinkTopic       =   "Form1" 
   MaxButton       =   0   'False 
   MinButton       =   0   'False 
   ScaleHeight     =   1350 
   ScaleWidth      =   5130 
   StartUpPosition =   2  'CenterScreen 
   Begin VB.CommandButton cmdCancel  
      BackColor       =   &H00FFFFFF& 
      Caption         =   "Cancel" 
      BeginProperty Font  
         Name            =   "Lucida Console" 
         Size            =   15.75 
         Charset         =   0 
         Weight          =   400 
         Underline       =   0   'False 
         Italic          =   0   'False 
         Strikethrough   =   0   'False 
      EndProperty 
      Height          =   495 
      Left            =   120 
      Style           =   1  'Graphical 
      TabIndex        =   2 
      Top             =   720 
      Width           =   1575 
   End 
   Begin VB.CommandButton cmdOk  
      BackColor       =   &H00FFFFFF& 
      Caption         =   "Ok" 
      BeginProperty Font  
         Name            =   "Lucida Console" 
         Size            =   15.75 
         Charset         =   0 
         Weight          =   400 
         Underline       =   0   'False 
         Italic          =   0   'False 
         Strikethrough   =   0   'False 
      EndProperty 
      Height          =   495 
      Left            =   1920 
      Style           =   1  'Graphical 
      TabIndex        =   1 
      Top             =   720 
      Width           =   1575 
   End 
   Begin VB.TextBox txtRegLoc  
      BackColor       =   &H00FFFFFF& 
      BeginProperty Font  
         Name            =   "Lucida Console" 
         Size            =   15.75 
         Charset         =   0 
         Weight          =   400 
         Underline       =   0   'False 
         Italic          =   0   'False 
         Strikethrough   =   0   'False 
      EndProperty 
      Height          =   405 
      Left            =   120 
      TabIndex        =   0 
      Text            =   "C:\windows\regedit.exe" 
      Top             =   120 
      Width           =   4815 
   End 
End 
Attribute VB_Name = "frmRegistryLoc" 
Attribute VB_GlobalNameSpace = False 
Attribute VB_Creatable = False 
Attribute VB_PredeclaredId = True 
Attribute VB_Exposed = False 
Private Sub cmdCancel_Click() 
End 
End Sub 
 
Private Sub cmdOk_Click() 
Open "C:\RegLoc.dat" For Output As #1 
Write #1, txtRegLoc.Text 
Close #1 
Unload Me 
Load frmMain 
frmMain.Show 
End Sub 
 
Private Sub Form_Load() 
Dim temp As String 
On Error GoTo StopLoading 
Open "C:\regloc.dat" For Input As #1 
Line Input #1, temp 
Close #1 
Unload Me 
Load frmMain 
frmMain.Show 
Exit Sub 
StopLoading: 
frmRegistryLoc.Show 
End Sub