Solved

VB.net make sound when trackbar moves

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DataGridView Events ? 3 47
SQL syntax in VB.net 5 39
Access to class from any project within a solution. 6 24
Help with preventing selection from a combobox 11 26
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 …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 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