play a sound file

wowjen

Member
Joined
Dec 27, 2009
Messages
13
Programming Experience
Beginner
I want my program to play sounds when an object is hovered, but I don't know how to code it... HELP! ^_^

:confused::confused::confused:

thanks in advance...^_^
;););)
 
Like this:
VB.NET:
Dim s As New SoundPlayer
s.SoundLocation = "youraudiofile.wav"
s.Load() : s.Play() : s.Dispose()
 

Latest posts

Back
Top