DesktopApplication.DocumentOpened
From Xojo Documentation
Event
DesktopApplication.DocumentOpened(item as FolderItem)
New in 2021r3
Supported for all project types and targets.
New in 2021r3
Supported for all project types and targets.
The user has double-clicked on a document which this app is specified to open or the OpenDocument method was called.
Sample Code
This code loads the text of the supplied file into a TextArea on Window1: