|
-
Dec 15th, 2002, 07:21 AM
#1
Thread Starter
Junior Member
How to use Windows Media Player Control
hi guys,
i was wondering how do u use the windows media player control in VB codes
let's say i want to play a file in a certain location on my comp.
what codes would i need?
thx guys
-
Dec 15th, 2002, 07:35 AM
#2
Frenzied Member
Create a new project.
Press CTRL+T and check 'Windows Media Player'.
Then add a control to the program.
To open a file do this:
MediaPlayer1.FileName = "C:\YourFile.avi"
To play it:
MediaPlayer1.Play
you can use 'stop' and 'pause' and alot of other stuff...
-
Dec 15th, 2002, 09:45 PM
#3
Thread Starter
Junior Member
well here's the second problem..
i'm using the windows media player 9 control and it doesn't seem to have the filename, play, pause or even stop methods....
is there something i need?
like the windows media player 9 sdk or some additional steps before i begin using the control?
thx for the help
-
Dec 15th, 2002, 10:02 PM
#4
Thread Starter
Junior Member
oh heh
found it
u just have to put
media1.controls.<play/pause/anything u want>
i suppose it's a lil different from the earlier windows media player controls
-
Dec 16th, 2002, 07:01 AM
#5
Frenzied Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|