VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Begin VB.Form frmFile 
   BorderStyle     =   3  'Fixed Dialog
   ClientHeight    =   885
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   1725
   Icon            =   "File.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   885
   ScaleWidth      =   1725
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   Begin MSComDlg.CommonDialog cdFile 
      Left            =   120
      Top             =   120
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
End
Attribute VB_Name = "frmFile"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'******************************************************************************
'* Form: frmFile
'*    Диалог выбора файла
'******************************************************************************
Option Explicit

'******************************************************************************
' Отображение диалога
'******************************************************************************
Public Function ShowModal(ByRef ID As String) As VbMsgBoxResult
    
    Me.Width = 0
    Me.Height = 0
    
    ' Отображаем диалог
    cdFile.FileName = ID
    cdFile.flags = cdlOFNFileMustExist
    cdFile.ShowOpen
    If Len(cdFile.FileName) > 0 Then
        ID = cdFile.FileName
        ShowModal = vbOK
    Else
        ShowModal = vbCancel
    End If
    
End Function

