• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 157
  • Last Modified:

load asf file in form

I have localy an asf file.
Is there a way to put the movie in a form. At this moment I is behind a button that starts Windows Media Player.

Jeffeny
0
harryv
Asked:
harryv
1 Solution
 
Crash2100Commented:
Go under Project->Components and check the "Windows Media Player" control.  Then create an instance of the control and do something like this (it will play automatically):

Private Sub Command1_Click()
     MediaPlayer1.Open "C:\mymovie.asf"
End Sub
0
 
harryvAuthor Commented:
Thankx it worked, I did only put the "Windows Media Player" control in the form but I forgot the command.

Thankx!

Jeffeny
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now