Article ID: 822495 - Last Review: November 26, 2007 - Revision: 2.8 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-bitOn This PageSYMPTOMSWhen you run a Microsoft Windows application with the TransparencyKey property of the form set to one of the colors of the background
image, areas of the form that match the color that you set the TransparencyKey property to are not rendered as transparent. CAUSEThis bug occurs when the color depth of the monitor is set
to a value that is greater than 24-bit. When the color depth of the monitor is
set to a value that is greater than 24-bit, the TransparencyKey property is not effective. Therefore, the areas on the form that
match the color you set the TransparencyKey property to are not rendered as transparent. WORKAROUNDTo work around this bug, programmatically set the BackgroundImage property and the TransparencyKey property. To do this, follow these steps:
STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are
listed at the beginning of this article.
MORE INFORMATIONSteps to Reproduce the Behavior
REFERENCESFor more information about the TransparencyKey property, visit the following Microsoft Web site: http://msdn2.microsoft.com/en-us/library/system.windows.forms.form.transparencykey(vs.71).aspx
(http://msdn2.microsoft.com/en-us/library/system.windows.forms.form.transparencykey(vs.71).aspx)
APPLIES TO
| Article Translations
|

Back to the top
