Examples Delphi

You do not need a TFileListBox; any listbox can receive a list of filenames using the LB_DIR message:

StrCopy(fName, 'c:\*.txt');
SendMessage(ListBox1.Handle, lb_Dir, 18, LongInt(@fName));