media player 10

M

Mike

Hey guys! Trying to write a little app in vb.net that when you first open
it, it plays a little avi file using media player 10. Right now when the
app opens it plays my little avi file but I would like the player to hide
showing the background behind the player, but I can't seem to get it to
work. Here is what I have so far:

Private Sub frmsnakes_load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load

MediaPlayer.playlistCollection.getAll()

MediaPlayer.URL = "c:\glideoff.avi"

LoadHighScore()

End Sub


Private Sub MediaPlayer_EndOfStream(ByVal sender As Object, ByVal e As _

AxWMPLib._WMPOCXEvents_EndOfStreamEvent) _

Handles MediaPlayer.EndOfStream

MediaPlayer.Visible = False 'Hide mediaplayer after avi finishes

End Sub



Anyone have any ideas?

Thanks!

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top