Possible Duplicate:
How to play a standard windows sound?
I want to play an windows error sound in my c# application when the user isn´t allowed to enter more characters into a text box. Is there a .net framework api or have i to play it from wave files and if, how do i do this?
Check the System.Media.SystemSounds class. I believe SystemSounds.Hand.Play()
should do the trick.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With