What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Need VB help(Visual Basic)

Need VB help(Visual Basic)
Author: Message:
dylan!
Senior Member
****

Avatar
l33t p4int3r

Posts: 665
Reputation: 30
– / Male / Flag
Joined: Jan 2005
O.P. Need VB help(Visual Basic)
well i just started learning VB the other day and im starting on little projects and im on a cd player thing im making using a guideline kinda of and i need you guys to help me get it to work:P

code:
Private Sub Combo1_Change()
' to determine file type

If ListIndex = 0 Then
File1.Pattern = ("*.wma")
ElseIf ListIndex = 1 Then
File1.Pattern = ("*.mp3")
Else
Fiel1.Pattern = ("*.*")
End If

End Sub


Private Sub Dir1_Change()

'To change directories and subdirectories(or folders and subfolders)


File1.Path = Dir1.Path
If Combo1.ListIndex = 0 Then
File1.Pattern = ("*.wma")
ElseIf Combo1.ListIndex = 1 Then
File1.Pattern = ("*.mp3")
Else
File1.Pattern = ("*.*")
End If
End Sub

Private Sub Drive1_Change()

'To change drives

Dir1.Path = Drive1.Drive

End Sub

Private Sub File1_Click()
If Combo1.ListIndex = 0 Then
File1.Pattern = ("*.wma")
ElseIf Combo1.ListIndex = 1 Then
File1.Pattern = ("*.mp3")
Else
File1.Pattern = ("*.*")
End If

If Right(File1.Path, 1) <> "\" Then
filenam = File1.Path + "\" + File1.FileName
Else
filenam = File1.Path + File1.FileName
End If
Text1.Text = filenam

End Sub


Private Sub Form_Load()

'To center the Audioplayer startup page


Left = (Screen.Width - Width) \ 2
Top = (Screen.Height - Height) \ 2
Combo1.Text = "*.wav"
Combo1.AddItem "*.wma"
Combo1.AddItem "*.mp3"
Combo1.AddItem "All files"

End Sub

Private Sub AudioPlayer_Click()

End Sub


Private Sub Command1_Click()

'To play Windows Media Player file or MPEG layer 3 Audio


If Combo1.ListIndex = 0 Then
AudioPlayer.DeviceType = ".wma"
ElseIf Combo1.ListIndex = 1 Then
AudioPlayer.DeviceType = ".mp3"
End If
AudioPlayer.FileName = Text1.Text
AudioPlayer.Command = "Open"
AudioPlayer.Command = "Play"

End Sub


Private Sub Command2_Click()
If AudioPlayer.Mode = 524 Then Exit Sub
If AudioPlayer.Mode <> 525 Then
AudioPlayer.Wait = True
AudioPlayer.Command = "Stop"
End If
AudioPlayer.Wait = True
AudioPlayer.Command = "Close"
End Sub

Private Sub Command3_Click()
End
End Sub


the part that it says is invalid or w.e that wont make it work is the BOLD text near the top about the file types
08-22-2005 07:26 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Need VB help(Visual Basic) - by dylan! on 08-22-2005 at 07:26 AM
RE: Need VB help(Visual Basic) - by segosa on 08-22-2005 at 07:33 AM
RE: Need VB help(Visual Basic) - by dylan! on 08-22-2005 at 07:34 AM
RE: Need VB help(Visual Basic) - by Dempsey on 08-22-2005 at 07:43 AM
RE: Need VB help(Visual Basic) - by dylan! on 08-22-2005 at 07:48 AM
RE: Need VB help(Visual Basic) - by Dempsey on 08-22-2005 at 07:50 AM
RE: Need VB help(Visual Basic) - by dylan! on 08-22-2005 at 07:55 AM
RE: Need VB help(Visual Basic) - by spokes on 08-22-2005 at 08:26 AM
RE: Need VB help(Visual Basic) - by dylan! on 08-22-2005 at 08:30 AM
RE: Need VB help(Visual Basic) - by spokes on 08-22-2005 at 08:36 AM
RE: Need VB help(Visual Basic) - by dylan! on 08-22-2005 at 08:39 AM
RE: Need VB help(Visual Basic) - by spokes on 08-22-2005 at 08:47 AM
RE: Need VB help(Visual Basic) - by dylan! on 08-22-2005 at 09:13 AM
RE: Need VB help(Visual Basic) - by spokes on 08-22-2005 at 09:22 AM
RE: Need VB help(Visual Basic) - by dylan! on 08-22-2005 at 09:24 AM
RE: Need VB help(Visual Basic) - by spokes on 08-22-2005 at 09:33 AM
RE: Need VB help(Visual Basic) - by dylan! on 08-22-2005 at 09:48 AM
RE: Need VB help(Visual Basic) - by spokes on 08-22-2005 at 10:01 AM
RE: Need VB help(Visual Basic) - by spokes on 08-22-2005 at 10:10 AM
RE: Need VB help(Visual Basic) - by CookieRevised on 08-22-2005 at 11:05 AM
RE: Need VB help(Visual Basic) - by spokes on 08-22-2005 at 11:13 AM
RE: Need VB help(Visual Basic) - by CookieRevised on 08-22-2005 at 11:44 AM
RE: Need VB help(Visual Basic) - by dylan! on 08-25-2005 at 12:49 AM
RE: Need VB help(Visual Basic) - by matty on 08-25-2005 at 01:07 AM
RE: Need VB help(Visual Basic) - by CookieRevised on 08-25-2005 at 03:49 AM
RE: Need VB help(Visual Basic) - by dylan! on 08-25-2005 at 10:50 PM
RE: Need VB help(Visual Basic) - by CookieRevised on 08-25-2005 at 11:53 PM
RE: Need VB help(Visual Basic) - by dylan! on 09-11-2005 at 08:18 AM
RE: Need VB help(Visual Basic) - by spokes on 09-11-2005 at 08:32 AM
RE: Need VB help(Visual Basic) - by dylan! on 09-11-2005 at 09:03 AM
RE: Need VB help(Visual Basic) - by segosa on 09-11-2005 at 10:12 AM
RE: Need VB help(Visual Basic) - by ShawnZ on 09-11-2005 at 10:15 AM
RE: Need VB help(Visual Basic) - by mad_onion on 09-11-2005 at 09:01 PM
RE: RE: Need VB help(Visual Basic) - by segosa on 09-12-2005 at 06:48 AM
RE: Need VB help(Visual Basic) - by prashker on 09-11-2005 at 09:38 PM
RE: Need VB help(Visual Basic) - by mad_onion on 09-12-2005 at 06:15 PM
RE: RE: Need VB help(Visual Basic) - by CookieRevised on 09-14-2005 at 03:53 AM
RE: Need VB help(Visual Basic) - by dylan! on 10-09-2005 at 05:57 AM
RE: Need VB help(Visual Basic) - by CookieRevised on 10-09-2005 at 01:14 PM
RE: Need VB help(Visual Basic) - by dylan! on 10-09-2005 at 10:36 PM
RE: Need VB help(Visual Basic) - by Ezra on 10-09-2005 at 11:17 PM
RE: Need VB help(Visual Basic) - by dylan! on 10-09-2005 at 11:24 PM
RE: Need VB help(Visual Basic) - by surfichris on 10-09-2005 at 11:50 PM
RE: Need VB help(Visual Basic) - by dylan! on 10-09-2005 at 11:53 PM
RE: Need VB help(Visual Basic) - by CookieRevised on 10-10-2005 at 12:13 AM
RE: Need VB help(Visual Basic) - by dylan! on 10-10-2005 at 07:07 PM
RE: Need VB help(Visual Basic) - by Ezra on 10-10-2005 at 07:31 PM
RE: Need VB help(Visual Basic) - by dylan! on 10-22-2005 at 05:49 AM
RE: Need VB help(Visual Basic) - by CookieRevised on 10-22-2005 at 02:05 PM
RE: Need VB help(Visual Basic) - by ShawnZ on 10-22-2005 at 02:53 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On