Windows Media Player Control

  • 14 years ago
    I added the Windows Media Player control to my project to allow me to play a sound.

    Is it possible some how to make the sound loop over and over again? I can't find a way to loop it. Maybe I am as blind as a bat, I dont know lol

    I tried using the SndPlaySound function and I got a PInvoke stack unbalanced error something like that. It would play the sound once and then give me a PInvoke error.

    I do not know what a PInvoke error is and I have searched the net for the last couple hours, I cannot seem to find a working solution.

    Thanks.









  • 14 years ago

    try this code

    WindowsMediaPlayer1.settings.playCount = CountNo

    it workes in vb6 ,but i don't know about vb.net 

  • 14 years ago
    that command still works in .NET

    thanks :)



Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“You can stand on the shoulders of giants OR a big enough pile of dwarfs, works either way.”