G
Gregory A Greenman
I created a simple program that does little more than display a
bitmap on the screen so that I could try out the TransparancyKey
property. Any color in the window that matches the TransparencyKey
should be transparent, so that users see whatever is behind the
window at those points, rather than the window itself.
I set FormBorderStyle to none, BackgroundImage to an embedded
bitmap, BackColor to Red and TransparencyKey to Red. The bitmap is
the same size as the window's client area. It uses only two colors,
Green and Red. The Red it uses is the same as the TransparencyKey.
After building the application, if I run the resulting exe outside
the IDE on my computer, it works as I intended. Only the green part
of the bitmap shows up, and anything behind the app's window shows
up where the bitmap is red.
If I copy the exe to my wife's computer and run it, she sees the
red areas. It is not transparent.
I then created an install project to install the program, but got
the same result.
What am I doing wrong?
bitmap on the screen so that I could try out the TransparancyKey
property. Any color in the window that matches the TransparencyKey
should be transparent, so that users see whatever is behind the
window at those points, rather than the window itself.
I set FormBorderStyle to none, BackgroundImage to an embedded
bitmap, BackColor to Red and TransparencyKey to Red. The bitmap is
the same size as the window's client area. It uses only two colors,
Green and Red. The Red it uses is the same as the TransparencyKey.
After building the application, if I run the resulting exe outside
the IDE on my computer, it works as I intended. Only the green part
of the bitmap shows up, and anything behind the app's window shows
up where the bitmap is red.
If I copy the exe to my wife's computer and run it, she sees the
red areas. It is not transparent.
I then created an install project to install the program, but got
the same result.
What am I doing wrong?