| View previous topic :: View next topic |
| Author |
Message |
Pepsiguy I post too much
Reputation: 0
Joined: 16 Aug 2007 Posts: 2016
|
Posted: Tue Feb 12, 2008 8:11 pm Post subject: Commondialog with Media player Help [VB6] |
|
|
Can someone help me i want to make a media player, so im using the windows media player and common dialog, so what do i do so when i press a button called Open it opens common dialog and u select a media file and it plays in WMP on the form
_________________
|
|
| Back to top |
|
 |
XxOsirisxX Grandmaster Cheater Supreme
Reputation: 0
Joined: 30 Oct 2006 Posts: 1597
|
Posted: Tue Feb 12, 2008 8:45 pm Post subject: |
|
|
first you need to make it open and filter what you looking for so..
| Code: | CommonDialog1.Filter = ("MP3 Files" (*MP3) |*.MP3")
CommonDialog1.showopen |
So then, we need just to make it, so when we press "Open" this file selected is being interpreted by Windows Media Player control, and played.
So, we put this next.
| Code: | if CommonDialog1.Filename < > "" then 'To avoid nothing
WindowsMediaPlayer1.url = (commondialog1.filename) |
And there you got.
_________________
|
|
| Back to top |
|
 |
Pepsiguy I post too much
Reputation: 0
Joined: 16 Aug 2007 Posts: 2016
|
Posted: Tue Feb 12, 2008 8:50 pm Post subject: |
|
|
CommonDialog1.Filter = ("MP3 Files" (*MP3) |*.MP3")
CommonDialog1.showopen
The Bolded Points are highlighted mistakes on the code it either says compile error end of statment or invalid character
_________________
|
|
| Back to top |
|
 |
XxOsirisxX Grandmaster Cheater Supreme
Reputation: 0
Joined: 30 Oct 2006 Posts: 1597
|
Posted: Tue Feb 12, 2008 9:14 pm Post subject: |
|
|
| pepsiguy_2 wrote: | CommonDialog1.Filter = ("MP3 Files" (*MP3) |*.MP3")
CommonDialog1.showopen
The Bolded Points are highlighted mistakes on the code it either says compile error end of statment or invalid character |
Sorry, my bad, i did put a " in a wrong place.
Just, put it like..
("MP3 Files (*MP3) |*.MP3")
_________________
|
|
| Back to top |
|
 |
Pepsiguy I post too much
Reputation: 0
Joined: 16 Aug 2007 Posts: 2016
|
Posted: Tue Feb 12, 2008 9:16 pm Post subject: |
|
|
Thanks it works now +rep
_________________
|
|
| Back to top |
|
 |
XxOsirisxX Grandmaster Cheater Supreme
Reputation: 0
Joined: 30 Oct 2006 Posts: 1597
|
Posted: Tue Feb 12, 2008 11:02 pm Post subject: |
|
|
You're Welcome ^^
_________________
|
|
| Back to top |
|
 |
|