What I'm trying to do is play a music file for a specified duration, and then stop playing. However, the whole music file is being played. Any ideas?
I've tried starting a new thread, still doesnt work.
The problem is that PlaySync blocks the thread, so other messages won't be processed. This includes your stop command from the Tick event. You have to use the regular Play function, which will be asynchronous and creates a new thread to play the file in. You will have to handle the resulting multithreading situation depending on how your application works.