List files in a TListBox lazarus / 31-LCL ---------------------------------------------------------------------- Astrognome · 2011-08-19 13:58 All I want is to list directories in a directory in a TListBox with no fancy bells and whistles. If i use the FileListBox, it puts brackets around the directories, and allows them to navigate. I'm a bit of a noob, so code will help. ---------------------------------------------------------------------- Bart · 2011-08-21 09:39 Take a look at the code of TFileListBox, just to see how it fills the box. Also take a look at the FindFirst, FindNext procedures. Using them you can traverse a directory retreiving all filenames. Show us what you've come up with so far, so we can help when you get stuck. If you simply do not want directories in the filelistbox exclude ftDirectory from the FileType property of TFileListBox (you can do this in OI) Bart