>Dear Experts
>
>I create abc.exe with following xyz.prg
>
>
>_SCREEN.VISIBLE = .F.
>set talk off
>set resource off
>SET Default To (Sys(5)+Alltrim(Sys(2003)))
>messagebox("Processor Serial is ...",0+32,"Serial No")
>READ Events
>_SCREEN.VISIBLE = .T.
>
>
>The Messagebox appears correctly but when I press OK
>then messagebox disappears and VFP remains open.
>
>How to QUIT VFP from background?
>What more codes should I write in xyz.prg
>
>Thanks
Remove 'read events' line.
Cetin