View previous topic :: View next topic |
Author |
Message |
Pepsiguy I post too much
Reputation: 0
Joined: 16 Aug 2007 Posts: 2016
|
Posted: Thu Nov 15, 2007 10:36 am Post subject: Is ther.... |
|
|
is there an open dialog box in vb6?
_________________
|
|
Back to top |
|
 |
killersamurai Expert Cheater
Reputation: 0
Joined: 10 Sep 2007 Posts: 197 Location: Colorado
|
Posted: Thu Nov 15, 2007 11:00 am Post subject: |
|
|
You would have to add "Microsoft Common Dialog Control 6.0".
|
|
Back to top |
|
 |
Pepsiguy I post too much
Reputation: 0
Joined: 16 Aug 2007 Posts: 2016
|
Posted: Thu Nov 15, 2007 11:14 am Post subject: |
|
|
it says i dont have an appropriate licience
_________________
|
|
Back to top |
|
 |
kickme93 Master Cheater
Reputation: 0
Joined: 24 Oct 2007 Posts: 461
|
Posted: Thu Nov 15, 2007 11:18 am Post subject: |
|
|
Go On Project > Components > Scroll Down And You Shall Find It
|
|
Back to top |
|
 |
Pepsiguy I post too much
Reputation: 0
Joined: 16 Aug 2007 Posts: 2016
|
Posted: Thu Nov 15, 2007 11:31 am Post subject: |
|
|
no when i put it on the form it says i have no registered liscense
_________________
|
|
Back to top |
|
 |
killersamurai Expert Cheater
Reputation: 0
Joined: 10 Sep 2007 Posts: 197 Location: Colorado
|
Posted: Thu Nov 15, 2007 12:03 pm Post subject: |
|
|
You would have to reinstall the license.
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
|
Back to top |
|
 |
Pepsiguy I post too much
Reputation: 0
Joined: 16 Aug 2007 Posts: 2016
|
Posted: Thu Nov 15, 2007 2:26 pm Post subject: |
|
|
i dont get it
_________________
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Thu Nov 15, 2007 3:05 pm Post subject: |
|
|
Heres an example using a class I found a while back on www.pscode.com
I wrote it just enough for you to understand how to call the dialogs, you will have to add your own code to save and open files. You can add onto the file types to open as well. An example would be to open all files, or INI files:
Code: | "INI Files (*.ini)|*.ini|All Files (*.*)|*.*" |
_________________
- Retired. |
|
Back to top |
|
 |
Pepsiguy I post too much
Reputation: 0
Joined: 16 Aug 2007 Posts: 2016
|
Posted: Thu Nov 15, 2007 3:36 pm Post subject: |
|
|
so from ur example for mp3 they would be "MP3 Files (*.mp3)|*.mp3|All Files (*.*)|*.*" or can u teach me how to use the open dialog so i can make a media player?
_________________
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Thu Nov 15, 2007 4:11 pm Post subject: |
|
|
pepsiguy_2 wrote: | so from ur example for mp3 they would be "MP3 Files (*.mp3)|*.mp3|All Files (*.*)|*.*" or can u teach me how to use the open dialog so i can make a media player? |
Yea, thats how you would set it up. If you don't know where to go from there, you need to read up more on file input and output.
_________________
- Retired. |
|
Back to top |
|
 |
Pepsiguy I post too much
Reputation: 0
Joined: 16 Aug 2007 Posts: 2016
|
Posted: Sat Nov 17, 2007 7:04 pm Post subject: |
|
|
ok...... heres what happens to me i open ur example yaddy yaddy ya and then add media player to the form how can i make the mp3 goto media player?
_________________
|
|
Back to top |
|
 |
Blader I post too much
Reputation: 2
Joined: 19 Jan 2007 Posts: 2049
|
Posted: Sat Nov 17, 2007 7:13 pm Post subject: |
|
|
Do you mean open the mp3 in media player?
Well, my common dialog control is very basic
Code: | Private Sub Command1_Click()
CommonDialog1.ShowOpen
object.property = CommonDialog1.FileName
End Sub |
I used this in my trainer to load swfs
I'm not sure how to make it open in media player though
Of course you would add error handlers to it
_________________
|
|
Back to top |
|
 |
Pepsiguy I post too much
Reputation: 0
Joined: 16 Aug 2007 Posts: 2016
|
Posted: Sat Nov 17, 2007 7:19 pm Post subject: |
|
|
i have vb6 portable...when i add common diaog it says i dont have a license therefore i ned a backup
_________________
|
|
Back to top |
|
 |
Blader I post too much
Reputation: 2
Joined: 19 Jan 2007 Posts: 2049
|
Posted: Sat Nov 17, 2007 7:24 pm Post subject: |
|
|
A license? Well, I have the full version so I can't help you there, but anyways
If you do get your vb6 to work with it, this is how you do it (assuming you want to open it on your form)
Go to components, check microsoft common dialog controls and scroll down to the bottom and check windows media player
Place the common dialog and media player on your form, stretch out the media player abit
Now name your media thing "MediaPlayer1"
Create a button, and put this code for it
Code: | CommonDialog1.ShowOpen
MediaPlayer1.URL = CommonDialog1.FileName |
And put your filter as all files
Now, when you open a mp3 file, it transfers it to the media player on your form
_________________
|
|
Back to top |
|
 |
|