To list only certain file types, use the Pattern property of the FileListBox control.
To look for multiple file types, semicolon separate your list. So to list only .htm and .html files, set the Pattern property to:
*.htm;*.html
To open the file??? How do you want to open the file?? Do you mean Open filename For Input/Output/... or do you mean display the file in a browser window,...????
Anyway, here is how you can start:
Private Sub File1_DblClick()
Dim l As Long
For l = 0 To File1.ListCount - 1
If File1.Selected(i) = True Then
' Do your stuff to open the file.
' To get hold of the selected file use
' File1.Path to get the path of the file
' and File1.List(i) to get the name of the file.
Exit For
End If
Next l
End Sub
Simon