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
Printable View
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
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...
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
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
Yep...