I am using the following code to search for "*.jpg", a property I set for the pattern in the fileListBox. I have a add button that allows me to add the content of the FileListBox. After I add the image name to my db, I clearAll, and now I am ready to add another image. But When I navigate through the dir, I can nolonger get any jpg images to appear in the FileListBox. Is there something wrong with my code?

VB Code:
  1. '//////// SELECT DRIVE LETTER FROM LOCAL HARD DRIVE - COMPANY BIOS /////////////////
  2. Private Sub Dir1_Change()
  3.     On Error Resume Next: File1.Path = Dir1.Path
  4.     '////// reset values to nothing as soon as you change directories
  5.     picBioImage.Picture = LoadPicture
  6.     txtfile1.Text = ""
  7. End Sub
  8.  
  9.     '//////////// SELECT FOLDER FROM DRIVE //////////////////////
  10. Private Sub Drive1_Change()
  11.     On Error Resume Next: Dir1.Path = Drive1.Drive
  12. End Sub
  13.  
  14.     '/////////// PUT FILE INTO TEXT BOX
  15. Private Sub File1_Click()
  16.     Dim txtPath$
  17.     txtPath$ = Dir1.Path
  18.     If Mid(txtPath$, Len(txtPath$), 1) = "\" Then
  19.         txtfile1.Text = Dir1.Path & File1.FileName
  20.     Else
  21.         txtfile1.Text = File1.FileName
  22.     End If
  23.    
  24.    picBioImage.Picture = LoadPicture(Dir1.Path & "\" & File1.FileName)
  25.        
  26. End Sub