-
Opacity Of A Panel
I have a form that has transparent sections. In those transparent sections, I have put panels. These panels perform functions when clicked. I need the Panels to be a Opacity of about 5% so It is just a shade of Gray.
Properties of the Panels:
(Double Click) - This will make it visible = false.
(Mouse Click) - This will display a message.
___________________________
I just need to make it so the panel is see through and you can see through both the form and somewhat of the panel.
-
1 Attachment(s)
Re: Opacity Of A Panel
-
Re: Opacity Of A Panel
Okay... is there a specific question there somewhere? I'm not sure what the problem really is.
-tg
-
Re: Opacity Of A Panel
How do I change the opacity of a Panel in VB
-
Re: Opacity Of A Panel
I don't think you can. The form has an opacity value, but it applies to the form and all its controls. Panel can be made transparent, but it's all the way transparent or it isn't. It doesn't have an opacity to it. There might be somethign you can do in the paint event to muck with the brush tha'ts used for the panel, but I wouldn't know what that would be or how to go about doing it.
-tg
-
Re: Opacity Of A Panel
It is possible to set the opacity of a panel, as discussed here:
http://www.vbforums.com/showthread.p...parency-option
There's an example in there too...
-
Re: Opacity Of A Panel
WEll sunovagunn... never occurred to me to mess with the alpha channel like that. And yet, once you think about it, makes total sense.
-tg