1 out of 3 rated this helpful - Rate this topic

How to: Play a System Sound from a Windows Form

The following code example plays the Exclamation system sound at run time. For more information about system sounds, see SystemSounds.

public void playExclamation()
{
    SystemSounds.Exclamation.Play();
}

This example requires:

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.