PlaySound()

Description

This method allows you to play a wav file.

Usage

PlaySound(wavFile)

Return Value

none

Parameter

wavFile Filename of the wav file to be played

Example

using System.IO;
string path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
string file = "\\\\TradersYardX\\\\Sounds\\\\Alert1.wav";
PlaySound(path + file);

Last updated