windows error sound C# code example Example: how to make error sound c# System.Media.SystemSounds.Exclamation.Play();