471,356 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,356 software developers and data experts.

media player probs

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

Jul 21 '05 #1
0 1076

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Shane | last post: by
reply views Thread by Mike | last post: by
3 posts views Thread by UJ | last post: by
3 posts views Thread by hurricane_number_one | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.