Results 1 to 13 of 13

Thread: Labels and MMControls

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2006
    Posts
    62

    Labels and MMControls

    I know how to get a picture box to play a movie by using a MMControl. My question is is there a way to put a label over the movie that is playing? Everything that I have tried results in the label being place under the movie/picture box.

    Thanks!

  2. #2

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2006
    Posts
    62

    Re: Labels and MMControls

    I just tried ZOrder with a label and that didn't work either.

  4. #4
    Fanatic Member schoolbusdriver's Avatar
    Join Date
    Jan 2006
    Location
    O'er yonder
    Posts
    1,020

    Re: Labels and MMControls

    I'm sure I answered something similar in another thread somewhwere. Try using a textbox and setting its properties to mimic a label.

  5. #5

    Thread Starter
    Member
    Join Date
    Jul 2006
    Posts
    62

    Re: Labels and MMControls

    Text boxes don't do transparent boxes though, right?

  6. #6
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Labels and MMControls

    Label is a windowless control (it doesn't have hWnd property) so it cannot stay on top of of other controls that are windows. Best you can do is mimic transparency using perhaps picturebox control. There are plenty of samples...

  7. #7

  8. #8
    Addicted Member Jazz00006's Avatar
    Join Date
    Feb 2006
    Posts
    185

    Re: Labels and MMControls

    ^^ use schoolbusdrivers thing that had a transparent fame, place in the label with transparent, place it in the special frame, and its all transparent apart from the text.

  9. #9
    Lively Member
    Join Date
    Aug 2001
    Location
    Canada
    Posts
    86

    Question Re: Labels and MMControls

    I might be way off the mark and havn't tried this myself, but what if you place the label inside the Picturebox? sorry if my 2 cents is totaly wrong, you can keep the change.

  10. #10
    Fanatic Member schoolbusdriver's Avatar
    Join Date
    Jan 2006
    Location
    O'er yonder
    Posts
    1,020

    Re: Labels and MMControls

    Quote Originally Posted by Jazz00006
    ^^ use schoolbusdrivers thing that had a transparent fame, place in the label with transparent, place it in the special frame, and its all transparent apart from the text.
    That may well work. Didn't think of it even though it's in my sig!

    EDIT:- Come to think of it, it might not work, as the frame isn't truly transparent - it blits a picture of whatever's underneath it onto itself. It may not be any good for movies. I do have a custom control transparent picturebox somewhere, which uses a mask colour to achieve transparency. I'll dig it out if necessary.
    Last edited by schoolbusdriver; Sep 29th, 2006 at 03:59 AM.

  11. #11

    Thread Starter
    Member
    Join Date
    Jul 2006
    Posts
    62

    Re: Labels and MMControls

    Quote Originally Posted by schoolbusdriver
    I do have a custom control transparent picturebox somewhere, which uses a mask colour to achieve transparency. I'll dig it out if necessary.
    If you could dig that out, that would be great! Hale to the bus driver!

  12. #12
    Fanatic Member schoolbusdriver's Avatar
    Join Date
    Jan 2006
    Location
    O'er yonder
    Posts
    1,020

    Re: Labels and MMControls

    Here we are. I downloaded this from somewhere a couple of years ago. Unfortunately you couldn't change the pic it contained at run time, so I modified that and some other properties to suit. (The site I got it from appears to have a new owner.)
    Attached Files Attached Files

  13. #13

    Thread Starter
    Member
    Join Date
    Jul 2006
    Posts
    62

    Re: Labels and MMControls

    Thanks, I'll give it a try

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