Hey guys,,
I have an AVI file I wanna play it within the form ...
I knew how to play it outside the form ,,,
Help me plz
Printable View
Hey guys,,
I have an AVI file I wanna play it within the form ...
I knew how to play it outside the form ,,,
Help me plz
Avi
--------------------------------------------------------------------------------
Hi,
So aplly control Windows Media Player or API function mciSendstring, but WMP is better.
EXAMPLE
---------
'Insert in form control WindowsMedia
Private Sub Form_Load()
wmp.uiMode = "none"
wmp.URL = FileName
wmp.Controls.play
End Sub
Private Sub Form_Resize()
wmp.Width = Me.Width
wmp.Height = Me.Height
End Sub
if using a windows media player control as salcman.vladimir said try this
VB Code:
'asssuming your windows media player control is called wmp private sub Command1_click() wmp.URL= "path of Avi Here" End Sub