Somehow I need to make a custom “file-open form”.
I manage to retrieve the file list with filelistbox.
My question is when I enter this in filelistbox1.mask
Image Files|*.jpg;*.jpeg;*.bmp;*.gif;*.png;*.tiff;*.tga
all of the *.jpg files did not show up, but other image files ( .jpeg;.bmp;.gif;.png;.tiff;.tga) shows up. how come this be ?
I’m sure there is the *.jpg files in the folder, but why the they did not show up in the filelistbox ?
how to fix my mask ? any idea what is the correct mask for it ?
You need to list just the extensions.
At least, that’s how I read the documentation.
From the comments it looks like you want to store in the control some friendly text that indicates what type of file the mask refers to, e.g. image files, executable files, text files etc. You could perhaps re-purpose the
Hintproperty to do this. You could use theTagproperty and store aPChar. You could derive fromTFileListBoxa new class that contained an extra property. Or you could just store the information in the form class that owns the list box.