transparency on labels

D

Daniel

Hi guys

I am making a custom form top border and have done it by making 3 picture
boxes.

One is the top border
Second is acting like a button for closing the window
third is acting like a minimise button.

All is fine until i try and use the label button as my window caption/title.
When i put the label over the picturebox for the border and tell the label
to have a transparent background, it makes the labels background transparent
AND the border picture box segment it covers as well, as though i punched a
hole right through.

I want the label back transparent and the border to therefore show through
as you would expect, what am i missing here?
 
C

Chris Dunaway

Daniel said:
I want the label back transparent and the border to therefore show through
as you would expect, what am i missing here?

The form is the label's parent, so when it is transparent, it shows the
form's background. Try setting the parent of the label to the
PictureBox.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top