Solved

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

Posted on 2004-10-12
7
468 Views
Last Modified: 2008-02-01
Can anyone provide me with some sample code whereby I can programatically play MP3 files without having a player launched and displayed.
0
Comment
Question by:donaldsam
  • 2
  • 2
7 Comments
 
LVL 18

Expert Comment

by:DotNetLover_Baan
ID: 12290839
You need a player to play MP3s.
-Baan
0
 
LVL 18

Accepted Solution

by:
DotNetLover_Baan earned 63 total points
ID: 12291022
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
 
LVL 16

Expert Comment

by:burakiewicz
ID: 12291754
you can hide it with a notify icon, so no player or window is visible
0
 
LVL 18

Assisted Solution

by:armoghan
armoghan earned 62 total points
ID: 12295991
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
 
LVL 18

Expert Comment

by:armoghan
ID: 12295996
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now