Solved

VB.net make sound when trackbar moves

Posted on 2014-11-29
3
177 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 69

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

760 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now