www.pudn.com > DataCollectionSystem.rar > DlgPath.frm, change:2003-06-12,size:2169b


VERSION 5.00 
Begin VB.Form dlgPath  
   BorderStyle     =   3  'Fixed Dialog 
   Caption         =   "选择路径" 
   ClientHeight    =   3195 
   ClientLeft      =   2760 
   ClientTop       =   3750 
   ClientWidth     =   4110 
   BeginProperty Font  
      Name            =   "宋体" 
      Size            =   9.75 
      Charset         =   0 
      Weight          =   400 
      Underline       =   0   'False 
      Italic          =   0   'False 
      Strikethrough   =   0   'False 
   EndProperty 
   Icon            =   "DlgPath.frx":0000 
   LinkTopic       =   "Form1" 
   MaxButton       =   0   'False 
   MinButton       =   0   'False 
   ScaleHeight     =   3195 
   ScaleWidth      =   4110 
   ShowInTaskbar   =   0   'False 
   StartUpPosition =   1  'CenterOwner 
   Begin VB.DirListBox DirPath  
      Height          =   1890 
      Left            =   240 
      TabIndex        =   3 
      Top             =   840 
      Width           =   2175 
   End 
   Begin VB.DriveListBox DrivePath  
      Height          =   315 
      Left            =   240 
      TabIndex        =   2 
      Top             =   240 
      Width           =   2175 
   End 
   Begin VB.CommandButton CancelButton  
      Caption         =   "取消" 
      Height          =   375 
      Left            =   2640 
      TabIndex        =   1 
      Top             =   720 
      Width           =   1215 
   End 
   Begin VB.CommandButton OKButton  
      Caption         =   "确定" 
      Height          =   375 
      Left            =   2640 
      TabIndex        =   0 
      Top             =   240 
      Width           =   1215 
   End 
End 
Attribute VB_Name = "dlgPath" 
Attribute VB_GlobalNameSpace = False 
Attribute VB_Creatable = False 
Attribute VB_PredeclaredId = True 
Attribute VB_Exposed = False 
 
Option Explicit 
Dim pathName As String 
 
Private Sub CancelButton_Click() 
Me.Hide 
Unload Me 
End Sub 
 
Private Sub DirPath_Change() 
pathName = DirPath.Path 
End Sub 
 
Private Sub DrivePath_Change() 
DirPath.Path = DrivePath.Drive 
End Sub 
 
Private Sub OKButton_Click() 
Me.Hide 
Unload Me 
frmMain.txtPath.Text = pathName 
End Sub