I'm trying to pass the file location from my list box into my sound player.
string fileLocation = listBox1.ToString();
SoundPlayer splayer = new SoundPlayer(soundLocation: fileLocation);
splayer.Play();
debugging shows the variable coming through as "C:\Temp\Sample1.wav".
The error comes back as "System.NotSupportedException: 'The given path's format is not supported.'"
Can anyone tell me what I'm doing wrong here?