Private Sub Dir1_Change()
File1 = Dir1
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub File1_PathChange()
List1.Clear
For i = 0 To File1.ListCount - 1
List1.AddItem Left(File1.List(i), Len(File1.List(i)) - 4)
Next
End Sub
Private Sub Form_Activate()
Drive1.Drive = "C:\"
File1.Pattern = "*.jpg;*.bmp;*.JPG;*.gif"
End Sub
Private Sub List1_Click()
Image1.Picture = LoadPicture(File1.Path & "\" & File1.List(List1.ListIndex))
End Sub