Re: Need a panel or user control with a truely transparent background

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: moondaddy (moondaddy_at_nospam.com)
Date: 03/17/04


Date: Wed, 17 Mar 2004 15:06:49 -0600

Thanks that looks like a great article. Is there a sample of the same
control in vb.net? I'm having trouble writing it from c# to vb.net.

-- 
moondaddy@nospam.com
"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:ees9GFtCEHA.464@TK2MSFTNGP11.phx.gbl...
> The GDI+ FAQ explains how.
>
> -- 
> Bob Powell [MVP]
> Visual C#, System.Drawing
>
> Check out February's edition of Well Formed.
> Non-client drawing, Graphics Transform stack and Flood-Filling
> http://www.bobpowell.net/currentissue.htm
>
> Answer those GDI+ questions with the GDI+ FAQ
> http://www.bobpowell.net/gdiplus_faq.htm
>
> Read my Blog at http://bobpowelldotnet.blogspot.com
>
> "moondaddy" <moondaddy@nospam.com> wrote in message
> news:%23vLpYdsCEHA.3928@TK2MSFTNGP09.phx.gbl...
> > I want to use a panel control which sits on top of another object which
as
> a
> > gradient background.  when I set the background color of the panel to
> > transparent, it just picks the darkest color from the background
> underneath
> > it.  How can I make the panel (or a user control to behave like a panel)
> to
> > allow gradient color from behind it to show as if it truly was
> transparent?
> >
> > Thanks
> >
> > -- 
> > moondaddy@nospam.com
> >
> >
>
>


Relevant Pages

  • Re: Transparent and Semi Transparent panels?
    ... control that inherits from Panel, ... IFormBackground, if I get a NULL back then it means that the parent has no ... This would give you a so called transparent control effect. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Drawstring too slow!
    ... part of your control. ... All you ever wanted to know about ListView custom drawing is in Well Formed. ... Answer those GDI+ questions with the GDI+ FAQ ... I draw lots of strings in a panel window, ...
    (microsoft.public.dotnet.framework.drawing)
  • RE: Custom Control
    ... I don't know exactly what you are trying to use it for but just use the Panel ... BackColor of the Panel control to black. ... could just set the BackColor of the Panel to Transparent ... > window should be able to see the contents of the window. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Transparent - does it work?
    ... I need to make a panel that is transparent to a web ... browser/shockwave file that can be changing. ... >> have put on top of some of the control. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Transparent and Semi Transparent panels?
    ... What you can do is to draw the part of the form's background image on the ... control to give a so called "transparent" effect. ... the Panel control in .NETCF 3.5. ...
    (microsoft.public.dotnet.framework.compactframework)