.NET Programming
 

     
How to Play a wave file in .NET

Keywords: play wave file, play sound .net

 

 
 

        using System.Media;

 

        private void PlayWaveSound(string SoundPath)

        {

            try

            {

                SoundPlayer SP = new SoundPlayer(SoundPath);

                SP.Play();

            }

            catch { }

        }


 


 PTerryWave LLC      Return to Programming Listing
About