It requires the System.Media Namespace:
Imports System.Media
And the code:
Sub PlaySound(ByVal filepath As String)
Dim soundplayer As New SoundPlayer
soundplayer.SoundLocation = filepath
soundplayer.Play()
End Sub
Happy Coding.
Imports System.Media
Sub PlaySound(ByVal filepath As String)
Dim soundplayer As New SoundPlayer
soundplayer.SoundLocation = filepath
soundplayer.Play()
End Sub