# XTF2\_FILEDROP > [HTML Version](xtf2_filedrop.htm) Flag XTF2\_FILEDROP enables the ability to detect when a file is dragged from Explorer—or a Windows Shell dialog such as a File Open dialog—and dropped on the XTREE control. The drop event triggers exitcode -75. The application must then call [MX\_DRAGDROP](mx_dragdrop.htm.md) to retrieve the filespec of the dropped file, with which it can do whatever it wants, perhaps adding the file name or related attributes as an item to the tree contents. **See Also** • [XTF\_DRAGDROP](xtf_dragdrop2.htm.md) to drag and drop within a single tree, for item re-ordering.. • [XTF2\_DRAGDROP2](xtf2_dragdrop2.htm.md) for drag/drop operations involving more than one XTREE control.