Hello this is my first topic xD
BTW my problem is : when the msgdlg appears and i click "yes" i want to being execute some code in the if statement.
What i have to write in the ( ) ?
Thanks in advance!
messagedlg('Windows Shutdown','Shutdown Now ?',mtConfirmation,[mbYes,mbNo],0);
if(....) then
begin
.....
end;