home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- Caption = "File Controls Demo"
- ClientHeight = 4245
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 5625
- LinkTopic = "Form1"
- ScaleHeight = 4245
- ScaleWidth = 5625
- StartUpPosition = 3 'Windows Default
- Begin VB.ComboBox Combo1
- Height = 315
- Left = 2970
- TabIndex = 3
- Text = "*.*"
- Top = 3615
- Width = 1980
- End
- Begin VB.FileListBox File1
- Height = 3210
- Left = 2760
- TabIndex = 2
- Top = 270
- Width = 2535
- End
- Begin VB.DirListBox Dir1
- Height = 2730
- Left = 270
- TabIndex = 1
- Top = 735
- Width = 2370
- End
- Begin VB.DriveListBox Drive1
- Height = 315
- Left = 270
- TabIndex = 0
- Top = 300
- Width = 2355
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Combo1_Change()
- File1.Pattern = Combo1.Text
- End Sub
- Private Sub Combo1_Click()
- File1.Pattern = Combo1.Text
- End Sub
- Private Sub Dir1_Change()
- File1.Path = Dir1.Path
- End Sub
- Private Sub Drive1_Change()
- Dir1.Path = Drive1.Drive
- End Sub
- Private Sub Form_Load()
- Combo1.AddItem "*.*"
- Combo1.AddItem "*.TXT"
- Combo1.AddItem "*.BMP;*.GIF;*.JPG"
- Combo1.AddItem "*.BAK;*.TMP"
- End Sub
-