How to remove beep from windows application

Asked

Viewed 545 times

0

I have an application developed in Delphi7, in some calls, windows emits that beep, and you’re filling the &!(&@.

I wonder if there’s a way disable sound from windows from my application, with some windows resource call and disable the application. I don’t want to disable the sound of the operating system, only the application.

1 answer

1


Try this on your application

//Desabilitar beep
SystemParametersInfo(SPI_SETBEEP, 0, nil, SPIF_SENDWININICHANGE); 
  • It worked, thank you

  • 1

    Since it worked, you can mark this answer as the answer that solved your problem! I’m happy to help

  • Oops, vlw for remembering

Browser other questions tagged

You are not signed in. Login or sign up in order to post.