Solved

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

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
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 …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

860 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