Solved

VB.net make sound when trackbar moves

Posted on 2014-11-29
3
181 Views
Last Modified: 2014-12-05
Hi

Is it possible to play a sound file while the user moves a Trackbar control in a VB.net application?

Thanks
0
Comment
Question by:murbro
3 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 40472509
Have you tried to handle the Scroll event and call the Beep method?
0
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 40472609
Take a look at this Knowledge Base page, that tells you how to play a sound file with VB.NET.

When the scroll event is first called, start playing the file and start a short timer.

On following scroll events, reset/restart the timer so that it continues to run.

When the scroll stops, the timer will reach its timed interval, and you will be able to stop the playing of the sound.
0
 

Author Closing Comment

by:murbro
ID: 40482441
Thanks very much
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question