Results 1 to 2 of 2

Thread: Windows Media Control problem

  1. #1
    jh_mtlion
    Guest

    Unhappy Windows Media Control problem

    Ok, here's my problem,

    I have a form that I'm playing an mpg on using windows media control. I'm also capturing keys that are pressed using the form's keydown procedure. However, unless the mediaplayer control is disabled, the mediaplayer takes the keystrokes instead of the form! How can I have the form recieve the keystrokes instead of the media player?

    Also having problems getting the media player window to disappear too, if I set it's visible property to false, the media player controls and border dissapear but I can still see the last frame of the mpg movie and that doesn't dissapear. I've tried messing around with the zorder on the form, but I can still see the last frame of the movie. How can I get windows media player to completely dissapear after playing an mpg?

    thanks to you all,

    -puma

  2. #2
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    Set the KeyPreview property of the form to True. Then it will receive the keystrokes no matter what control is selected.

    You can try to refresh the form using Me.Refresh, but if that doesn't work, you can move the media player control to some extreme position like left=-94848 and top=-93872 and then it will probably move the image as well.

    You can also use the mciSendString to play the movies directly on the form or in a frame, but I don't have my code to do that here at school.
    <removed by admin>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width