I am making a .wav player application in which I have a button to play the loaded .wav
So if the sound is playing a "pause" button will be showed and when it stops a "play" button will be showed.
currently using this:
using (SoundPlayer player = new SoundPlayer(label1.Text))
{
pictureBox1.Image = Form1.Properties.Resources.play_button;
try
{
player.Play();
}
catch (FileNotFoundException)
{
MessageBox.Show("File has been moved." + "\n" + "Please relocate it now!");
}
}
Is there a way to make it? If it is how to make it? Source if possible?