Link to home
Start Free TrialLog in
Avatar of darkxenn
darkxenn

asked on

Playing MP3s in C#.NET

Hey, quick and dirty question.

I am looking to build a form that plays MP3s. Ive been digging around and can not seem to come up with too many ideas on how to do this. All i'm lookin for is sample code that will work, or just a link to any site that shows how to start playing an MP3 on an event or something like that.


Thanks
--Xen
Avatar of Mohammed Nasman
Mohammed Nasman
Flag of Palestine, State of image

Hello

  You can do that using Windows Media player Active X, Just right click on tool box, then choose add/remove items, when you see the Customzie ToolBox window, switch to Com Components tab, and switch down to Windows Media player

click ok, and it will added to your toolbox, you can now have Player that have WMP features ;-)

If you would to do that without using OCX, you can use DirectSound from DirectX

Look here for more info
http://www.codeproject.com/cs/media/AmbientSounds.asp
http://www.codeproject.com/cs/media/#Audio

Regards,

Avatar of darkxenn
darkxenn

ASKER

darn... shoulda been more specific...

what i meant was, how can i load music into a form that only the code behind the form can control? i dont want to add in a windows media player, i want the user to be able to see the form, and based on whats going on in the form, i want to be able to load MP3s to play.

thanks
--Xen
ASKER CERTIFIED SOLUTION
Avatar of PocketMatt
PocketMatt

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
PocketMatt comment will not work for this question
I gave a comment by using DirectX, which is more lucky to work with PocketPC, PocketMatt link require a win DLL to work
I gave my objection but seems you ignored it