Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transparency - Control Becomes Transparent

Status
Not open for further replies.

aTekTipsUser

Programmer
Nov 8, 2004
68
US
I have set a form to have the shape of an image. When I set the image to be transparent, the black text on my buttons become transparent and the triangle on my dropdown becomes transparent. I have set the image to have a lime surrounding and in my code it sets this as the transparency key. What is odd is it views this lime (or any other color I set it to) as black and sets black as transparent. Here is the code that sets the transparency.

Dim bmp As Bitmap = CType(Me.BackgroundImage, Bitmap)bmp.MakeTransparent(bmp.GetPixel(1, 1))
Me.BackgroundImage = bmp
Me.TransparencyKey = bmp.GetPixel(1, 1)

Why is the controls text and drop down arrow becoming transparent? Thanks for the help!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top