471,325 Members | 1,560 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,325 software developers and data experts.

Making panels transparent?

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.

Jan 16 '06 #1
4 7766
Why don't you create a image set the opacity you want then set the
panels BackImageURL equal to the image you just created.

Jan 16 '06 #2
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;

Jan 16 '06 #3
"Netmonster" <ne***********@yahoo.com> wrote in news:1137444440.905478.8220
@g47g2000cwa.googlegroups.com:
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

Jan 16 '06 #4
The 170 sets the alpha making it transparent and showing the background
image, but faded.

Jan 16 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Jim | last post: by
3 posts views Thread by Steve Koon | last post: by
reply views Thread by Nathan Sokalski | last post: by
2 posts views Thread by thowle | last post: by
8 posts views Thread by Brian Ward | last post: by
1 post views Thread by Terry | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.