how do I play MP3 Files from within VB.Net?

Can anyone provide me with some sample code whereby I can programatically play MP3 files without having a player launched and displayed.
donaldsamAsked:
Who is Participating?
 
DotNetLover_BaanConnect With a Mentor Commented:
You can hide the window though..
Use this code..

        Dim MyProcess As New Process
        MyProcess.StartInfo.FileName = "C:\MySong.mp3"
        MyProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
        MyProcess.Start()

-Baan
0
 
DotNetLover_BaanCommented:
You need a player to play MP3s.
-Baan
0
 
burakiewiczCommented:
you can hide it with a notify icon, so no player or window is visible
0
 
armoghanConnect With a Mentor Commented:
see the following code for playing a MP3 using a DLL without using the external player
http://www.a1vbcode.com/app.asp?ID=2775
0
 
armoghanCommented:
0
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.

All Courses

From novice to tech pro — start learning today.