Re: Windows forms with Transparent Backgrounds

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



My computer (Windows XP) is set to 32-bit and it is working, and it works on
Vista at 32-bit also, but on the other XP machines you are correct it seems
to work below 32-bit mode.

I wonder why it is working correctly on my dev box (Windows XP) at 32-bit.

The work around at
http://support.microsoft.com/default.aspx?scid=kb;en-us;822495 doesn't work.
When I do this I end up seeing the background color for the form, and you
can't set the Background Color of a form to transparent if you do you get a
nice runtime error.

Eric

"Alberto Poblacion" <earthling-quitaestoparacontestar@xxxxxxxxxxxxx> wrote
in message news:uxfmZPqhHHA.4704@xxxxxxxxxxxxxxxxxxxxxxx
"Eric Renken" <EricRenken@xxxxxxxxxxxxxxxx> wrote in message
news:O7j1TKphHHA.4132@xxxxxxxxxxxxxxxxxxxxxxx
Well I seem to have an interesting problem. I have an application that
where I am setting the BackgroundImage and the TransparencyKey set in
code. These are both set after the InitializeComponent() in the
constructor of the form. This works great on my computer Windows XP Pro;
however on some other computer the TransparenecyKey isn't working and you
see the horrible green color that shouldn't be there. This doesn't
happen on all machines just some. I even went as far as pulling the
TransparenacyColor from a single pixel from the image at run time so I
could make sure I was getting the exact color.

Probably, the computers where it is failing have the video adapter set
to 32-bit color, while those where it is working are set to 24 bits or
less. It is a documented bug of the TransparencyKey (not working at more
that 24 bits of color depth).




.



Relevant Pages

  • Re: Cryptogram Comment
    ... >> bother me with Windows questions. ... >> machines are broken. ... Just like if you don't know to tune up your car every year then you ... > and Linux and other open OS's make all patches FREE to redistribute. ...
    (sci.crypt)
  • What Does It Take to Get a PC With XP?
    ... I won't waste time rehashing the argument over whether Windows Vista ... that virtually every copy of Vista Business or Vista Ultimate Edition ... machines doesn't mean that its employees understand that policy. ...
    (misc.consumers)
  • [Full-Disclosure] RE: M$ - so what should they do?
    ... >isn't a basic windows design piece. ... or getting their machines loaded with adware and spyware ... heart of the problem of machines connected to the Internet, ...
    (Full-Disclosure)
  • Re: Need tutorials, guides... However...
    ... performance loss you'll get from an OS like Windows or Linux. ... machines out there have gone off in many different directions. ... expect to find certain hardware at certain addressess. ...
    (alt.lang.asm)
  • Re: Saw 10.4.1 Running On a PC Laptop Today
    ... People would no longer differentiate between Macs and PCs and most would just stick with the Windows OS that came with their box. ... Apple would no longer be innovative as it now and eventually be marginalized out of business. ... The fact is, Windows users use Windows NOT because "it works, and that's all that counts", but because it is the ONLY real game in town for Intel machines, and because Apples are JUST TOO EXPENSIVE for the common man and corporations to embrace that paradigm. ... most Windows users would rather switch to OSX than continue to put up with Microsoft's machinations in the computer world. ...
    (comp.sys.mac.advocacy)