Results 1 to 7 of 7

Thread: Opacity Of A Panel

  1. #1

    Thread Starter
    Lively Member kshadow22's Avatar
    Join Date
    Dec 2014
    Location
    Kentucky
    Posts
    95

    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.

  2. #2

    Thread Starter
    Lively Member kshadow22's Avatar
    Join Date
    Dec 2014
    Location
    Kentucky
    Posts
    95

    Re: Opacity Of A Panel

    Name:  Untitled.jpg
Views: 410
Size:  13.0 KB

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Opacity Of A Panel

    Okay... is there a specific question there somewhere? I'm not sure what the problem really is.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    Lively Member kshadow22's Avatar
    Join Date
    Dec 2014
    Location
    Kentucky
    Posts
    95

    Re: Opacity Of A Panel

    How do I change the opacity of a Panel in VB

  5. #5
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  6. #6
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,424

    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...

  7. #7
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width