Hey guys I posted this in the FAQs but I figured I would put it here to.
Here is what I am trying to do. I am trying to write a little app in vb.net
that when you first open
it, it plays a small 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
If I click on the player after its done playing the avi file it still
doesn't hide it. Anyone have any ideas?
Thanks!
Mike