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...^_^
;););)
 

newguy

Well-known member
Joined
Jun 30, 2008
Messages
611
Location
Denver Co, USA
Programming Experience
1-3
Like this:
VB.NET:
Dim s As New SoundPlayer
s.SoundLocation = "youraudiofile.wav"
s.Load() : s.Play() : s.Dispose()
 
Top Bottom