Solved

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

Posted on 2004-10-12
7
457 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
VB.Net - Find String in Array 3 25
Find value in LINQ result ? 4 17
Clone Visual studio 2013 solution 5 15
Showdialog 8 20
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

708 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

12 Experts available now in Live!

Get 1:1 Help Now