Prova a tradurre questo codice che hai scritto
esprimendolo in lingua italiana.codice:if buttonSelected = mrOK then if not ExitWindows(EWX_POWEROFF or EWX_FORCE,0) then if not buttonSelected = mrCancel then ShowMessage('Operazione Annullata'); end;
A me non sembra molto chiaro...![]()