From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

DesktopWindow.AcceptFileDrop(FileType as String)

New in 2021r3

Supported for all project types and targets.

Permits documents of type FileType to be dropped on the window.


FileType must be a file type you specified via the FileType class or the File Type Sets Editor. It works correctly even if you have multiple file types defined with the same File type code, and you don't specifically call AcceptFileDrop for the first such type.