lihat juga

Monday, May 24, 2010

Creating A Media Player

VB 6.0 :Creating a Media Player ,Video Player ...

Hello All Programer..

lol I decided to post a tutorial of How To Create A Music Player , Video Player , Photo Viewer , and all the Files that Windows Media Player Suports ..




Open a Standard.exe
Go to COMPONENTS and ADD the Microsoft Common Dialog Control 6.0 and windows Media Player
Take the Windows Media Player and size it as you want
the Microsoft Common Dialog 6.0 just put somewhere .
After You'll need
- a command button
- a list Box

The List Box will be the place for Files that you will add ...
for the list box the code is
Code:
WindowsMediaPlayer1.URL = List1
The Command Button rename with " ADD File "
and the code for it
Code:
Dim sFile As String


With CommonDialog1
.DialogTitle = "Open Media..."
.CancelError = False
.Filter = "All Suported Files"
.ShowOpen
If Len(.FileName) = 0 Then
Exit Sub
End If
sFile = .FileName

With List1
.AddItem sFile
End With
End With
and finaly TEST it ..

ads

Ditulis Oleh : gdfysx Hari: 9:14 PM Kategori:

0 comments:

Post a Comment

surf