If you have exe file MyApp.exe and want to extract form MyForm from it then in Command window run next commands:
ON KEY LABEL F7 USE MyForm.scx ALIAS MyForm IN 0 AGAIN ON KEY LABEL F8 SELECT MyForm ON KEY LABEL F9 COPY TO MyForm_.scx DO MyApp.exe
... and when aplication starts press F7, F8 and F9 consequently. Then locate files MyForm_.scx and MyForm_.sct and rename them to MyForm.scx and MyForm.sct.
If your MyApp.exe clears on key label when starts, you may run these On key label commands from Database events or triggers.