Form transparency

M

Mattps

I have built a project in .Net Express 2008 that uses the form transparency
key. This works fine when I build, publish and install on the machine that I
wrote the project on. However, if I try and install on any other machine the
transparency is replaced by the mask colour I have selected.

All the required .NET framework versions and service packs are installed.
This in on Windows XP SP2.
 
H

Herfried K. Wagner [MVP]

Mattps said:
I have built a project in .Net Express 2008 that uses the form transparency
key. This works fine when I build, publish and install on the machine that
I
wrote the project on. However, if I try and install on any other machine
the
transparency is replaced by the mask colour I have selected.

All the required .NET framework versions and service packs are installed.
This in on Windows XP SP2.

Not sure if this still applies to VS 2008, but it's worth a look:

BUG: The TransparencyKey property is not effective for Windows forms if the
color depth of the monitor is set to a value that is greater than 24-bit
<URL:http://support.microsoft.com/kb/822495/en-us>
 
M

Mattps

Thanks Herfried,

My colour depth is set to 32 bit. Change the colour depth on other
workstations makes no difference. I did find this article about rendering the
colour match bit using GDI, not System.Drawing:

http://support.microsoft.com/kb/952944/en-us

However, it only shows the example in C#, not Visual Studio.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top