Transparency Problem with Picturebox

Needbass2004
07-08-2004, 01:05 PM
Ok my form has a background image.

I have 2 picture boxes on top of each other....layered.
The bottom picture box is the base of my image.
The top picture box is .png image is all transparent except the highlights
which should give me a glass looking image.

I want to put text between the images so it looks like the text is behind glass.

Now my problem is the top picture box is transparent but it shows the form's
background instead of all the objects under it.

See my attachment for details.

Please help me.

Iceplug
07-09-2004, 11:05 AM
Don't use a picturebox for graphics-sensitive things like that. It's best if you just draw it yourself. You can use the System.Drawing.Graphics to draw images and shapes and etc. The Graphics.DrawImage draws pngs, gifs, and anything with transparency well. :)

Needbass2004
07-12-2004, 04:43 AM
Great, but I have no Idea how to get started with system.drawing.graphics.
Where is some source code that shows how to do it?

Iceplug
07-12-2004, 06:49 AM
Here's a little tutorial that should get you started.
http://www.xtremevbtalk.com/showthread.php?t=147590

Needbass2004
07-12-2004, 08:12 AM
Thanks, I finally got it.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum