Results 1 to 2 of 2

Thread: Zorder of a label control

  1. #1

    Thread Starter
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827

    Zorder of a label control

    I am creating an activex control in which I have a 3rd party image control and a label control. I want the label control to be on top of the image control but it's always hidden beneath the image control. Is there any way I can make it come over top of the image contro?? I have played around with "Send to Back" and "Bring to Forward" commands but none of them is doing the job.
    Baaaaaaaaah

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    Unfortunately, you cannot have ZOrder for the controls that don't have hWnd. Controls like Label, Image and Line will be painted directly on the parent object (like form, frame, picturebox etc). So, what you can do is to put your label on the picture box and set picturebox's BorderStyle to None.

    Or you can just use picturebox and have your text printed on it.

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