|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Form transparencyI 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. "Mattps" <matt.standing@community.nospam> schrieb: Not sure if this still applies to VS 2008, but it's worth a look:>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. 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 S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/> 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. Show quoteHide quote "Herfried K. Wagner [MVP]" wrote: > "Mattps" <matt.standing@community.nospam> schrieb: > >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 S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://dotnet.mvps.org/dotnet/faqs/> > > The example givin in the MS article:
http://support.microsoft.com/kb/952944/en-us States that I need to "Render the color key bits with GDI instead of with System.Drawing" The example give is c#. Does anyone know who to achieve this in VB.NET? Matt Show quoteHide quote "Mattps" wrote: > 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. > > "Herfried K. Wagner [MVP]" wrote: > > > "Mattps" <matt.standing@community.nospam> schrieb: > > >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 S Herfried K. Wagner > > M V P <URL:http://dotnet.mvps.org/> > > V B <URL:http://dotnet.mvps.org/dotnet/faqs/> > > > >
Other interesting topics
Design Time Controls
Cannot use Mustinherit in a base form object properties presentation static classes are evil ? System.Windows.Forms.Control.Handle==HWND? Saving and retrieving WinForm template info Project consisting of multiple projects Read From Application Config File In Class Library Win forms designer - controlling the designer code generation What control did Microsoft Use? |
|||||||||||||||||||||||