Drag & Drop: OnDropFiles not fired lazarus / 31-LCL ---------------------------------------------------------------------- zxmwc24 · 2020-05-13 17:18 I try to use the standard Lazarus way to implement file drag & drop on Win32, according to the Wiki sample https://wiki.freepascal.org/Drag_and_Drop_sample. When I start a new project and just set the Form's AllowDropFiles property to true and add some ShowMessage('Hello') into the OnDropFiles event, nothing happens when dragging a file onto the form from the Explorer. So apparently the event is not being fired. I read that there used to be a bug but should be fixed by now. Any idea? ---------------------------------------------------------------------- lucamar · 2020-05-13 18:24 Please, specify what your OS type and version are as well as your Lazarus/FPC version and widgetset. In the meantime, test with this minimal project (attached) and tell us whether it works or fails and , if the latter, how it fails. I have tested it in Linux i386 and Windows XP and it worked as it should. ---------------------------------------------------------------------- Bart · 2020-05-13 20:34 You did actually set the OnDropFiles to an event in the ObjectInspector? Bart