using System.Media;
private void Form1_Load(object sender, EventArgs e)
{
SoundPlayer player = new SoundPlayer();
string path = "C:\\windows\\media\\ding.wav";
player.SoundLocation = path; //Set the path
player.Play(); //play it
}
منبع : http://www.daniweb.com/code/snippet446.html





پاسخ با نقل قول
