Board index » delphi » Questions about FileListBox

Questions about FileListBox

I have an application where I want to go down the list of files by using
the up and down arrow keys.  What I want to do is when the arrow is
pressed and a new file name is highlighted I want to run some logic on
the highlighted file.  I seem to keep getting the file I just left
instead.

What EVENT should I use and what should the code look like to get the
currently highlighted file?

Thanks.

 

Re:Questions about FileListBox


Lew -

The OnClick event handler should allow you to get to the new file name
by referencing FileListBox1.FileName.

Good luck.

Kurt

Other Threads