Form.OnDropFiles and 2 different components lazarus / 21-General ---------------------------------------------------------------------- domasz · 2024-01-03 13:26 I use Form.OnDropFiles to accept files dropped onto my program. Works great but now I would like to do a different action if the files are dropped onto TListBox in my program and a different action when dropped anywhere else in my program. ---------------------------------------------------------------------- Zvoni · 2024-01-03 13:41 TListBox has an OnDragDrop-Event..... also take a look at the DragKind-Property of TListBox ---------------------------------------------------------------------- domasz · 2024-01-03 15:30 ListBox.OnDragDrop doesn't even fire when dropping files from Explorer. This is a great solution: https://forum.lazarus.freepascal.org/index.php?topic=53333.0