Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

:

) )((

-1 :

-2

-3




Start All Programe Microsoft
Visual Studio 6.0 Microsoft Visual Basic 6.0
Stander exe


MMcontrol
Commondialog

List box
Play list
MMcontrol Tool
Box

Commponents

Microsoft Common
dialog6.0 Microsoft Multimedia control6.0


Command1
Command2
Command3
Command4
Command5
Command6
Command7
Command8
List1
MMControl1
Commondialog1
Label2
Label3
********


Play
Stop1
Next1
Pr
Add
remove
Removeall
Load
List1
MM
Com1
Pos
Len
*********

Play
Stop
Next
Prev.
Add
Remove Item
Remove all
Load
------------------------------------------------------------**********



load

:
Load_Click
Com1.Showopen
"MM.Command="Close
MM.FileName = Com1.FileName
"MM.Command="Open
"MM.command="Play" : Play.Caption = "Pause
End Sub

- :

MMControl


MMcontrol =


MMcontrol play
) pause (

F5
Load .

Stop1
:
Stop1_click
"MM.command = "Stop
"MM.command = "Prev

- :

"MM.command = "Play" : Play.Caption = "Pause


End sub

- :
MMcontrol

Play Pause
:

F5


:
Play_click
If play.Caption = "Play" Then
"MM.command = "Play
"Play.Caption = "Pause
Else
"MM.command = "Pause
"Play.Caption = "Play
End If
End sub

- :
If = Play
MMcontrol Else Pause play
MMcontrol
Play
End if load Stop1

: ,,,



Timer1_Timer
Len.Caption = "Song time :" & MM.Length
Pos.Caption = "Position :" & MM.Position
End sub

- :

Len
MMcontrol :
pos
:





Progress bar
Commponents
Progres bar
Max
Min
Value


:
Timer1_Timer
If MM.FileName <> "" Then
Progressbar1.Max = MM. Length
Progressbar1.Value = MM. Position
End if
End sub

- :


progress
End if
F5


play & Stop

:
Timer1_Timer
IIf MM.FileName = "" Then
Play.Enabled = False
Stop1.Enabled = False
Else
Play.Enabled = True
Stop1.Enabled = True
End If
End Sub

- :
if MM stop Play else

:
Timer1_Timer
Len.Caption = "Song time :" & MM.Length
Pos.Caption = "Position :" & MM.Position
If MM.FileName <> "" Then
Progressbar1.Max = MM. Length
Progressbar1.Value = MM. Position
End if
IIf MM.FileName = "" Then
Play.Enabled = False
Stop1.Enabled = False
Else
Play.Enabled = True
Stop1.Enabled = True
End If
End Sub

F5


File1

-: DriveListBox DirListBox
FileListBox

:
Drive1_Change
Dir.Path = Drive1.Drive
End Sub

:
Dir1_Change
File1.Path = Dir1.Path
"File1.Pattern = "*.Mp3
End Sub

:
File1_Click
"MM.Command = "Close
MM.FileName = File1.Path & "\" & File1.FileName
"MM.Command = "Open
"MM.Command = "Play
"Play.Caption = "Pause
End Sub

)(1
Dir

)(2
Dir File

)(3


play Pause

F5

Load
Play list

:
Add_click
Com1.ShowOpen
List1.AddItem Com1.FileName
End Sub

- :


) (

) (

:
Remove_click
If List1.ListCount <> 0 Then
)List1.RemoveItem (List1.ListIndex
End If
End Sub

- :

0 List1.RemoveItem
List ) (List1.ListIndex

list box

:
List1_DblClick
"MM.Command = "close
MM.FileName = List1.Text
"MM.Command = "open
"MM.Command = "play" : Play.Caption = "Pause
End Sub

- :
MMcontrol

MMcontrol
play

:
Next_click
If List1.ListCount <> 0 Then

If List1.ListIndex = List1.ListCount - 1 Then


List1.ListIndex = 0
"MM.Command = "close
MM.FileName = List1.Text
"MM.Command = "open
"MM.Command = "play
""Command1.Caption = "Pause
Exit Sub
End If
List1.ListIndex = List1.ListIndex + 1
"MM.Command = "close
MM.FileName = List1.Text
"MM.Command = "open
"MM.Command = "play
"Command1.Caption = "Pause
End If

- :
If List1.ListCount <> 0 Then
)<> listBox ( 0
If List1.ListIndex = List1.ListCount - 1 Then
) list1.listindex ( = -1 list1.listcount

) 1 (
listbox MsgBox List1.ListIndex & "-" & List1.ListCount

) (
play pause
listbox
play

back
play list

play list


:
Removeall_click
List1.Clear
End Sub
list box

:
) (

14 :
:
darkangel_0o0@yahoo.com -:

) (
) (
www.vb4arab.com

You might also like