I have the code below :
IF MessageDlg('Delete?',mtConfirmation,[mbYes,mbNo],0) = MrYes THEN
Begin
///Do Something;
End
Else
Begin
///Do Something;
End;
When the Style
is Windows
the MessageDlg
function play the sound , but if I change the Style
to Windows 10
for exemple, then the sound does not work.
Why the sound does not exist when I select a
Style
?How can I fix that ?
Note : I'm working on Delphi 10 Seattle.
Update:
I try MessageBeep(MB_ICONQUESTION);
as David Heffernan suggest in his Answer, but that also does not emit a sound.
MessageBeep(MB_ICONQUESTION);
Does not emit Standard system sound – Zanezaneski