W wowjen Member Joined Dec 27, 2009 Messages 13 Programming Experience Beginner Jan 25, 2010 #1 I want my program to play sounds when an object is hovered, but I don't know how to code it... HELP! ^_^ thanks in advance...^_^
I want my program to play sounds when an object is hovered, but I don't know how to code it... HELP! ^_^ thanks in advance...^_^
newguy Well-known member Joined Jun 30, 2008 Messages 611 Location Denver Co, USA Programming Experience 1-3 Jan 25, 2010 #2 Like this: VB.NET: Dim s As New SoundPlayer s.SoundLocation = "youraudiofile.wav" s.Load() : s.Play() : s.Dispose() Upvote 0 Downvote
Like this: VB.NET: Dim s As New SoundPlayer s.SoundLocation = "youraudiofile.wav" s.Load() : s.Play() : s.Dispose()