Mp3 Control

Hi, i was trying to build a program to play mp3 files that when the playlist ends, or after a determined time the computer would shutdown but i only find good help for VB6 no use in the 2005 version... And i wanted to know if you can help me, please.

In the last case it can launch WMP to play the files and then keeping an eye on the state of it to know when the playlist ends.

Thank you for your time

[421 byte] By [Cyber_Wolf] at [2007-12-24]
# 1

you can implement the WMP Control in your application, by adding a reference to the Windows Media Player Control (COM component). You may also wish to download and read the SDK for WMP:

http://www.microsoft.com/windows/windowsmedia/forpros/platform/sdk.aspx

there are events in the WMP Control which you can implement to detect the state of the player, then depending on the state, you can do whatever you like. There includes properties/methods etc... which allow you to play files, stop playing files, pause etc... and keep a count on the playlist - it's been a while since I have used it but hope the SDK docs can give you some better help!

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay10/mmp_sdk/windowsmediaplayer10sdk.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay10/mmp_sdk/embeddingtheplayercontrolinanetframeworkapplicatio.asp

ahmedilyas at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Language...