So, I re did my project in VB.NEt instead of C#. So, I put all the sound files in the resource files. I made a routine to play the sound file but it says that to make sure the sound file exists. Which it does because it played in the resource manager.
Here's the sub routine to play the sound:
Dim sndplayer As New Media.SoundPlayer Public Sub TestSound(ByVal snd As String) My.Computer.Audio.Play(snd) End Sub
I thought the dim sndplayer as new media.soundplayer would help but i noticed it didn't do anything. Was I almost close when i did that?
Also, when you click on the preview button on the form it looks like this:
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click If Sound1.Checked = True Then TestSound(My.Resources.prnk.AHHH2.ToString) End If End Sub
Any sugguestions or guidence would be greatly appreciated! Thanks!