NeOBz Posted October 6, 2003 Posted October 6, 2003 i paint a picture with the drawImage methode but my LinkLabel's background is the form color even if i put it transparent. i tryed evrything and i can'T 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 ? Quote
aewarnick Posted October 6, 2003 Posted October 6, 2003 this.LL.BackColor= Color.FromArgb(0,0,0,0); You don't need to inherit or use SetStyle. Quote C#
NeOBz Posted October 6, 2003 Author Posted October 6, 2003 its not working. i guess i can'T paint over a controls so the back color of the control become transparent but shows the form backcolor instead of the bitmap Quote
Drstein99 Posted October 10, 2003 Posted October 10, 2003 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???? Quote www.DRSTEIN99.com www.RAIDGEAR.net www.THERE.com -> Tell them DrStein99 sent ya!
Drstein99 Posted October 10, 2003 Posted October 10, 2003 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? Quote www.DRSTEIN99.com www.RAIDGEAR.net www.THERE.com -> Tell them DrStein99 sent ya!
NeOBz Posted October 10, 2003 Author Posted October 10, 2003 how did you do to to draw text overtop of pictureboxes to get text to appear transparent ? Quote
Drstein99 Posted October 10, 2003 Posted October 10, 2003 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. Quote www.DRSTEIN99.com www.RAIDGEAR.net www.THERE.com -> Tell them DrStein99 sent ya!
aewarnick Posted October 11, 2003 Posted October 11, 2003 "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. Quote C#
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.