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?
Printable View
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?
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.
A frame works too. It might even look better depending on the label's information.
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.Quote:
Originally Posted by Jim Davis
i have video undr the label and i want to sho it as background.
i mean : label.backstyle=0
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.
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.