| View previous topic :: View next topic |
| Author |
Message |
killar456 Master Cheater
Reputation: 0
Joined: 30 Mar 2007 Posts: 415
|
Posted: Sat Dec 22, 2007 3:44 pm Post subject: timer help, invalid property value |
|
|
| Code: | | Timer1.Interval = Val(Text2.Text & "000") | so whats wrong with the code?
|
|
| Back to top |
|
 |
Blader I post too much
Reputation: 2
Joined: 19 Jan 2007 Posts: 2049
|
Posted: Sat Dec 22, 2007 4:00 pm Post subject: |
|
|
The number is probably set too high.
_________________
|
|
| Back to top |
|
 |
AtheistCrusader Grandmaster Cheater
Reputation: 6
Joined: 23 Sep 2006 Posts: 681
|
Posted: Sat Dec 22, 2007 4:11 pm Post subject: |
|
|
| Code: | | Timer1.Interval = Val(Text2.Text) & Val("000") |
|
|
| Back to top |
|
 |
killar456 Master Cheater
Reputation: 0
Joined: 30 Mar 2007 Posts: 415
|
Posted: Sat Dec 22, 2007 4:24 pm Post subject: |
|
|
| nvm, i got it, but for like a path for a music player load in text3, the browse button the lets you go through your documets to find music....how i make that?
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Sat Dec 22, 2007 5:35 pm Post subject: |
|
|
| killar456 wrote: | | nvm, i got it, but for like a path for a music player load in text3, the browse button the lets you go through your documets to find music....how i make that? |
Use the common dialog control for that. Google 'vb6 common dialog' for more info on it.
_________________
- Retired. |
|
| Back to top |
|
 |
killar456 Master Cheater
Reputation: 0
Joined: 30 Mar 2007 Posts: 415
|
Posted: Sat Dec 22, 2007 6:58 pm Post subject: |
|
|
lol, thanks ive been googling all day on how to do that and now i got a answer, thx
but how do i open all files, so i can choose like a .wav file and load it in to text1?
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Sat Dec 22, 2007 10:57 pm Post subject: |
|
|
Why would you want to open a .wave file into the text box lol? As for opening other files, change the filter of the common dialog.
For example:
| Code: | Private Sub Command1_Click()
On Error GoTo ErrHandle
CommonDialog1.Filter = "All Files|*.*"
CommonDialog1.CancelError = True
CommonDialog1.Flags = cdlOFNFileMustExist + cdlOFNHideReadOnly
CommonDialog1.ShowOpen
Exit Sub
ErrHandle:
If Err.Number = cdlCancel Then
MsgBox "Cancelled"
End If
End Sub |
_________________
- Retired. |
|
| Back to top |
|
 |
killar456 Master Cheater
Reputation: 0
Joined: 30 Mar 2007 Posts: 415
|
Posted: Mon Dec 24, 2007 10:06 pm Post subject: |
|
|
| well, i making a music player for my nephew with his favorite songs with 1 push of a button, and if he wanted to load another one, and then you click browse and you browse your comp and you click the mp3, wav, and it loads the path to text1, then you click set, and it plays..........
|
|
| Back to top |
|
 |
|