Csharp/C Sharp/Development Class/SystemSounds

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

use Asterisk sound from SystemSounds

using System;
using System.Media;
class MainClass {
    public static void Main() {
        // Play the sound associated with the Asterisk event
        SystemSounds.Asterisk.Play();
    }
}