another Transparent Controls question :/

NeOBz

Member
Joined
Sep 29, 2003
Messages
9
i paint a picture with the drawImage methode but my LinkLabels background is the form color even if i put it transparent. i tryed evrything and i canT make the background transparent. I read that i could inherit the control to be able to use the setstyle methode but i have no idea how to do it ! how do i inherit a control ?
 
its not working. i guess i canT paint over a controls so the back color of the control become transparent but shows the form backcolor instead of the bitmap
 
I am experiencing the same problem - put a picturebox on a form, put a label in front of the picturebox with transparent background as property, and it assums the FORMS background color, and ignores the picturebox.


Any1????
 
Ok I figured out how to draw text overtop of pictureboxes to get text to appear.

My next problem is that I have an animating bitmap, and I want text to appear in front of that - any ideas?
 
Put this code in a test button, make a picturebox1

Dim PSNormal As New Pen(Color.Red, 1)
Dim g As Graphics = PictureBox1.CreateGraphics

g.DrawLine(PSNormal, 5, 50, 100, 100)


It will draw a line across the picturebox. I already deleted the other samplecode, look in help under draw text - (instead of draw line) will do the same.
 
"an animating bitmap, and I want text to appear in front of that"

Every time the image in the picturebox changes you must redraw the text.
 
Back
Top