Hi
I have a game with several wav.files, which play whenever a player lands in a specific area of a board.
I would like to give the possibility to the player to turn the sound off and on using a menu. i have tried this code but all i get An unhandled exception
Help welcome
Thank you
Private Sub mnuSound_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuSound.Click
If mnuSound.Checked = True Then
mnuSound.Checked = False
ElseIf mnuSound.Checked = False Then
mnuSound.Checked = True
Sounds.PlayWavResource("m16")
Sounds.PlayWavResource("Heli")
etc.
End If
End Sub
I have a game with several wav.files, which play whenever a player lands in a specific area of a board.
I would like to give the possibility to the player to turn the sound off and on using a menu. i have tried this code but all i get An unhandled exception
Help welcome
Thank you
Private Sub mnuSound_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuSound.Click
If mnuSound.Checked = True Then
mnuSound.Checked = False
ElseIf mnuSound.Checked = False Then
mnuSound.Checked = True
Sounds.PlayWavResource("m16")
Sounds.PlayWavResource("Heli")
etc.
End If
End Sub