home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 6 / mastvb6.iso / ch_code / ch05 / fcontrols / selfiles / selfiles.frm (.txt) next >
Encoding:
Visual Basic Form  |  1996-03-02  |  1.7 KB  |  62 lines

  1. VERSION 5.00
  2. Begin VB.Form FileControls 
  3.    Caption         =   "File Control Demo"
  4.    ClientHeight    =   3630
  5.    ClientLeft      =   60
  6.    ClientTop       =   345
  7.    ClientWidth     =   5460
  8.    LinkTopic       =   "Form1"
  9.    ScaleHeight     =   3630
  10.    ScaleWidth      =   5460
  11.    StartUpPosition =   3  'Windows Default
  12.    Begin VB.ComboBox Combo1 
  13.       Height          =   315
  14.       ItemData        =   "SelFiles.frx":0000
  15.       Left            =   2550
  16.       List            =   "SelFiles.frx":0013
  17.       TabIndex        =   3
  18.       Top             =   3165
  19.       Width           =   2775
  20.    End
  21.    Begin VB.FileListBox File1 
  22.       Height          =   2820
  23.       Left            =   2505
  24.       TabIndex        =   2
  25.       Top             =   120
  26.       Width           =   2835
  27.    End
  28.    Begin VB.DirListBox Dir1 
  29.       Height          =   2340
  30.       Left            =   135
  31.       TabIndex        =   1
  32.       Top             =   615
  33.       Width           =   2175
  34.    End
  35.    Begin VB.DriveListBox Drive1 
  36.       Height          =   315
  37.       Left            =   135
  38.       TabIndex        =   0
  39.       Top             =   150
  40.       Width           =   2190
  41.    End
  42. Attribute VB_Name = "FileControls"
  43. Attribute VB_GlobalNameSpace = False
  44. Attribute VB_Creatable = False
  45. Attribute VB_PredeclaredId = True
  46. Attribute VB_Exposed = False
  47. Private Sub Combo1_Change()
  48.     File1.Pattern = Combo1.Text
  49. End Sub
  50. Private Sub Combo1_Click()
  51.     File1.Pattern = Combo1.Text
  52. End Sub
  53. Private Sub Dir1_Change()
  54.     File1.Path = Dir1.Path
  55. End Sub
  56. Private Sub Drive1_Change()
  57.     Dir1.Path = Drive1.Drive
  58. End Sub
  59. Private Sub Form_Load()
  60.     Combo1.ListIndex = 4    ' Display all files initially
  61. End Sub
  62.