|
-
Dec 17th, 2014, 09:36 AM
#1
Thread Starter
Lively Member
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.
-
Dec 17th, 2014, 09:40 AM
#2
Thread Starter
Lively Member
-
Dec 17th, 2014, 10:08 AM
#3
Re: Opacity Of A Panel
Okay... is there a specific question there somewhere? I'm not sure what the problem really is.
-tg
-
Dec 17th, 2014, 10:56 AM
#4
Thread Starter
Lively Member
Re: Opacity Of A Panel
How do I change the opacity of a Panel in VB
-
Dec 17th, 2014, 11:30 AM
#5
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
-
Dec 17th, 2014, 12:52 PM
#6
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...
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Dec 17th, 2014, 01:56 PM
#7
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|