Csharp/C Sharp/Development Class/SystemSounds

Материал из .Net Framework эксперт
Перейти к: навигация, поиск

use Asterisk sound from SystemSounds

<source lang="csharp">

using System; using System.Media; class MainClass {

   public static void Main() {
       // Play the sound associated with the Asterisk event
       SystemSounds.Asterisk.Play();
   }

}

      </source>