How to: Play a System Sound from a Windows Form
Visual Studio 2010
The following code example plays the Exclamation system sound at run time. For more information about system sounds, see SystemSounds.
The following code example plays the Exclamation system sound at run time. For more information about system sounds, see SystemSounds.