Double click to open app

When user double the xojo desktop app, app open and show content. How can I achieve this?

you could use the app or window events and call a Method ShowContent() ?