Hello,
I am having a button and the what I want to do simply, is to play an mp3 file when I click on it.
So I tried
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
My.Computer.Audio.Play(My.Resources.roll_dice, AudioPlayMode.Background)
End Sub
Invalid operation exception was unhandled.
Any suggestions please? What do I miss here? What can I do?
Any help will be much appreciated.
Thank you so much
in advanced.
I am having a button and the what I want to do simply, is to play an mp3 file when I click on it.
So I tried
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
My.Computer.Audio.Play(My.Resources.roll_dice, AudioPlayMode.Background)
End Sub
Invalid operation exception was unhandled.
Any suggestions please? What do I miss here? What can I do?
Any help will be much appreciated.
Thank you so much
in advanced.