logo search
Учебник_ПОА

How to: Play Sounds in an Application

You can add sound to your application by using the System.Media namespace. System sounds, such as a beep, can be played by using System.Media.SystemSounds.Beep.Play(); in an application.

You can also play specific audio files. The following example shows you how to play a waveform audio file that the user has selected.