 |
vbgen Level: Moderator
 Registered: 10-10-2002 Posts: 876
|
Re: running .AVI file from VB
Pran K Saha, WELCOME TO THE FORUM!!!
yes, its possible.
first, add the component Windows Media Player to the toolbox, then create an instance of it on the form.
this is the code to play an avi file...
MediaPlayer1.FileName = "c:windowsdesktopMy.avi"
'just a sample filename... of course change
'this to the location of the file you want to
'play, okay?
'then to play
MediaPlayer1.Play |
simple, huh? if you have other questions, post back, okay?
also, you can play .wav, .mp3 and other stuff.
just check the formats tab on the options menu under view of the windows media player exe.
[Edited by vbgen on 31-01-2003 at 12:59 AM GMT]
____________________________
Been busy trying to take a second degree <--it's not working out...
|
|
30-01-2003 at 04:58 PM |
|
|
blackmamba9 Level: Trainee
 Registered: 20-01-2005 Posts: 1
|
Re: running .AVI file from VB
quote: vbgen wrote:
Pran K Saha, WELCOME TO THE FORUM!!!
yes, its possible.
first, add the component Windows Media Player to the toolbox, then create an instance of it on the form.
this is the code to play an avi file...
MediaPlayer1.FileName = "c:windowsdesktopMy.avi"
'just a sample filename... of course change
'this to the location of the file you want to
'play, okay?
'then to play
MediaPlayer1.Play |
simple, huh? if you have other questions, post back, okay?
also, you can play .wav, .mp3 and other stuff.
just check the formats tab on the options menu under view of the windows media player exe.
[Edited by vbgen on 31-01-2003 at 12:59 AM GMT]
Hi, i was just wonder how do i add the Windows Media Player to the toolbox? Im using vb.net and i did try to add the WMP but instead of it showing WindowsPlayer1, it shows AxWindowsMediaPlayer1 instead. I also tried the .FileName = "C: ..." but it doesnt have the .FileName method.
Maybe i added the WMP to toolbox the wrong way?
|
|
20-01-2005 at 10:23 PM |
|
|
Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: running .AVI file from VB
check this
____________________________
If you find the answer helpful, please mark this topic as solved.
|
|
21-01-2005 at 12:25 AM |
|
|
|
|
 |
 |