Solved

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

Posted on 2004-10-12
7
501 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

691 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