943,648 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Marked Solved
  • Views: 18235
  • VB.NET RSS
Apr 16th, 2008
0

Playing mp3 file with vb.net

Expand Post »
i want to playing mp3 file with vb.net.
how can i do this?

regard
Naruse
Similar Threads
Reputation Points: 32
Solved Threads: 0
Junior Poster in Training
Naruse is offline Offline
50 posts
since Jan 2008
Apr 16th, 2008
2

Re: Playing mp3 file with vb.net

use Microsoft Multimedia Control. find this control on component.
add this code to play mp3 file :
VB.NET Syntax (Toggle Plain Text)
  1. On Error GoTo ErrMsg
  2. AxMMControl1.Wait = True
  3. AxMMControl1.FileName = OpenFileDialog1.FileName
  4. AxMMControl1.Command = "Open"
  5. AxMMControl1.Command = "Play"
  6. Exit Sub
  7. ErrMsg:
  8. MsgBox(Err.Description)
  9. End Sub
Last edited by Jx_Man; Apr 16th, 2008 at 6:15 pm.
Reputation Points: 1182
Solved Threads: 392
Posting Sensei
Jx_Man is offline Offline
3,138 posts
since Nov 2007
Apr 17th, 2008
0

Re: Playing mp3 file with vb.net

loved this...
thank for your help Jx_man
Really great code.
Reputation Points: 32
Solved Threads: 0
Junior Poster in Training
Naruse is offline Offline
50 posts
since Jan 2008
Apr 18th, 2008
3

Re: Playing mp3 file with vb.net

you're Welcome friend
Happy Coding.
Reputation Points: 1182
Solved Threads: 392
Posting Sensei
Jx_Man is offline Offline
3,138 posts
since Nov 2007
Jul 8th, 2009
0

Re: Playing mp3 file with vb.net

I don't know if anyone looks at an old thread, but I have a question for this. I used the multimedia control, and it worked great. But when installing my project, it did not work on all computers. (When trying to run it on some computers, it said, there was a problem, and it shut down the program) What could be the reason for this? Do you need anything installed on the computer to use this?
Reputation Points: 10
Solved Threads: 16
Posting Whiz in Training
plusplus is offline Offline
207 posts
since Jul 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: cannot use dataadapter.update with a dataset containing multiple tables
Next Thread in VB.NET Forum Timeline: Find another app and command a button





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC