Re: What control is being painted?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Blair Bonnett (blairb_at_nospam.paradise.net.nz)
Date: 01/30/05


Date: Mon, 31 Jan 2005 12:13:22 +1300

Thanks for pointing that out. I was under the impression that
Transparent meant they would not paint a background colour, but just
write the text (or whatever) on top of what was already there. At least
this behavior makes sense now...

Mick Doherty wrote:
> Only controls with their BackColor set to Transparent will paint themselves
> with the custom background. Other controls will paint themselves with the
> color set in their BackColor property, or if not explicitly set, with the
> color set in their parents BackColor property.
>
> If this is not the behaviour you are seeing, then you have encountered a bug
> or, more likely, have missed something in your code or control property
> settings, e.g. you have placed labels on a Transparent Panel.



Relevant Pages

  • Re: What control is being painted?
    ... Transparent meant they would not paint a background colour, ... > color set in their parents BackColor property. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: GDI and image displays
    ... Tim Wilson ... > underlying original one shows through the 'transparent' parts and I want ... >> So you're drawing one image and then you want to change and draw another ... >> Paint event handler, then you just need to cause a refresh using, as one ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Transparent BG for loaded Image
    ... >> have it as BufferedImage. ... >> but with it's background beeing transparent. ... > paint over which). ... > using the Graphics2D object. ...
    (comp.lang.java.programmer)
  • Re: Transparent BG for loaded Image
    ... > have it as BufferedImage. ... Then that part of the image which should be transparent needs to have ... and actually paint the underlying image over the top image. ... > is a blue filled circle with a magenta background. ...
    (comp.lang.java.programmer)
  • Dynamic Menu Style problem
    ... I created a master page with web sitemap ... Now when I set all dynamic menu properties to BackColor = Transparent ... It keep show white background even the back color set to transparent ...
    (microsoft.public.dotnet.framework.aspnet)