Results 1 to 7 of 7

Thread: OnTop

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2008
    Posts
    198

    OnTop

    hi all
    i have aproplem make the label on top.
    in one form i have webbrowser control. and i add another label.
    i want the label to be on top of the web controller.
    how can i do that?
    IT CTO & System Administrator.

  2. #2
    Frenzied Member Jim Davis's Avatar
    Join Date
    Mar 2001
    Location
    Mars base one Username: Jim Davis Password: yCrm33
    Posts
    1,284

    Re: OnTop

    Labels are objects in design mode only. But in runtime, a label is only equalent the Form.Print method, so its impossible to make it OnTop of a control.

    You may want to use a borderless picturebox, and you can use the Picture1.Print, to print a text on it.

  3. #3
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431

    Re: OnTop

    A frame works too. It might even look better depending on the label's information.
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

  4. #4
    Frenzied Member Jim Davis's Avatar
    Join Date
    Mar 2001
    Location
    Mars base one Username: Jim Davis Password: yCrm33
    Posts
    1,284

    Re: OnTop

    Borderless frame will show no text. But you can use it for displaying a label. But i still prefer Picturebox, so why do you wanna place two objects, instead of one. You can also use bitblt, to make the picturebox to appear as transparent.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Apr 2008
    Posts
    198

    Re: OnTop

    Quote Originally Posted by Jim Davis
    Borderless frame will show no text. But you can use it for displaying a label. But i still prefer Picturebox, so why do you wanna place two objects, instead of one. You can also use bitblt, to make the picturebox to appear as transparent.
    i want the webbrowser to be the background of the txt in the label.
    i have video undr the label and i want to sho it as background.
    i mean : label.backstyle=0
    IT CTO & System Administrator.

  6. #6
    Frenzied Member Jim Davis's Avatar
    Join Date
    Mar 2001
    Location
    Mars base one Username: Jim Davis Password: yCrm33
    Posts
    1,284

    Re: OnTop

    Thats why you have to place the picturebox. Use bitblt, to copy the area of the webbrowser, to the picturebox, that will be transparent.

    Read more about bitblt usage, its quite simple. But the problem is that im not sure how you can get the hDC of a webbrowser ax.

  7. #7
    Frenzied Member Jim Davis's Avatar
    Join Date
    Mar 2001
    Location
    Mars base one Username: Jim Davis Password: yCrm33
    Posts
    1,284

    Re: OnTop

    OK ive done a way, that makes the text's background to be transparent.

    The only problem is the annoying flicker that i cant get rid of it. But its points on a way that you should follow, you wanna get transparent background.

    Hope it helps.
    Attached Files Attached Files

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