Sound on click?
Hey guys, if i want my program to play a sound from a mp3 file when button 1 is clicked, how would i do that?
thanks
thanks

Public Class Form1
Dim x As Integer
Private Sub open_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles open.Click
Dim opf As New OpenFileDialog
opf.ShowDialog()
axm.URL = opf.FileName
End Sub
Private Sub play_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles play.Click
axm.Ctlcontrols.play()
End Sub
Private Sub pause_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles pause.Click
axm.Ctlcontrols.pause()
End Sub
Private Sub st0p_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles st0p.Click
axm.Ctlcontrols.stop()
End Sub
Private Sub pausefor2s_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles pausefor2s.Click
timer1.enabled = True
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
x += 1
If x = 1 Then
pause_Click(sender, e)
End If
If x = 20 Then
play_Click(sender, e)
x = 0
Timer1.Enabled = False
End If
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Interval = 100
End Sub
End Class