Help with sound in vb//why wont it work?
Private Sub Form1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyUp
If e.KeyCode = Keys.A Then
My.Computer.Audio.Play(My.Resources.Matrix_Revolutions_Soundtrack___Tetsujin, AudioPlayMode.Background)
End If
End Sub
Its wierd because the form loads but when i press the a key nothing happens
please help me!!
Re: Help with sound in vb//why wont it work?
Hi,
This should normaly work only for wave files:
vb Code:
My.Computer.Audio.Play("Path to wav file", AudioPlayMode.BackgroundLoop)
What you can do is rename your wave file in the resources folder and try it again.
Wkr,
sparrow1