Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you disable system sounds for a .NET application?

Tags:

c#

.net

vb.net

I would like to disable some or all system sounds for a .NET 3.5 application.

I cannot find anything around System.Media.SystemSounds that turns off sound settings that the user has chosen via the control panel.

[Edit] This is more for the Exlamation type sounds on certain message boxes we display. Would really like a mute for a form or dialog.

like image 797
HadleyHope Avatar asked Nov 05 '22 07:11

HadleyHope


1 Answers

By definition, they are system sounds, not application sounds. Disabling all of them would therefore disable them for other applications, as well. Would you like using an application that arbitrarily disabled all your system sounds?

Without knowing which specific system sounds you're disabling, it's impossible to give you a more direct answer other than to simply mute the speakers.

like image 189
NathanAldenSr Avatar answered Nov 07 '22 22:11

NathanAldenSr