• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 186
  • Last Modified:

VB.net make sound when trackbar moves


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

Murray Brown
Murray Brown
1 Solution
Éric MoreauSenior .Net ConsultantCommented:
Have you tried to handle the Scroll event and call the Beep method?
Jacques Bourgeois (James Burger)PresidentCommented:
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.
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks very much
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now