Making panels transparent?

B

Brady Love

Is it possible to give panels opacity so they are see through a little
bit? I have a background image on my mainform and I want to put panels
over it that you can see the background image still but at 50% opacity.
For a screenshot go to http://www.zero-6.com/1162006122545.JPG the
panel is outlined in pink, I want to be able to see the background
image through it. If anyone knows how I can do this that would be
greatly appreciated, thanks.
 
N

Netmonster

Why don't you create a image set the opacity you want then set the
panels BackImageURL equal to the image you just created.
 
B

Brady Love

Just found a better solution actually but thanks :D

It was alot easier than I made itout to be just had to use the property
correctly

Color panelColor = Color.FromArgb(170, 64, 64, 64);
panel3.BackColor = panelColor;
 
M

Michael Bray

Why don't you create a image set the opacity you want then set the
panels BackImageURL equal to the image you just created.

The background in that case would be the panel itself (probably grey), not
whatever was underneath the panel.

-mdb
 
B

Brady Love

The 170 sets the alpha making it transparent and showing the background
image, but faded.
 

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