473,387 Members | 1,300 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Form.TransparencyKey doesn't work...

VMI
I have a Windows Form and, for its BackgroundImage, I put an all-white
bitmap (opened mspaint, and immediately saved as bmp). Then I set the
TransparencyKey property to White (I also added it in the Form_Load). For
some reason I still can't see "through" the Form. Am I doing something
wrong? The RightToLeftLayout property is set to False.
On the other hand, if I remove the background image and set Form.BackColor
to White, it'll work.
I'm using VS 2005.

Thanks.
Apr 27 '07 #1
1 3029
"VMI" <vo******@yahoo.comwrote in message
news:eb**************@TK2MSFTNGP04.phx.gbl...
>I have a Windows Form and, for its BackgroundImage, I put an all-white
bitmap (opened mspaint, and immediately saved as bmp). Then I set the
TransparencyKey property to White (I also added it in the Form_Load). For
some reason I still can't see "through" the Form. Am I doing something
wrong? The RightToLeftLayout property is set to False.
On the other hand, if I remove the background image and set Form.BackColor
to White, it'll work.
Is your display set to more than 24 bits of color? If that's your case,
there's a documented bug that prevents the TransparencyKey from working. See
knowledge base article:
http://support.microsoft.com/default...b;en-us;822495 .

Apr 28 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Carsten Klotz | last post by:
Hi, I've set the TransparencyKey of a form to black. That means, all black pixel will be shown transparent within the drawing content of that form. If I set the background to black, I can see...
2
by: Allan | last post by:
I've been trying to get this to work for days. I have a form which needs to be transparent (only the form background). On the form there are two images (32 bit PNGs) with alpha channel...
6
by: peter hansen | last post by:
By changing the backgroundimage of a form into a picture and then enable the TransparencyColor you can make a form as a cirkel etc (the form has the same 'form' as the picture has). I have then...
5
by: Matthew | last post by:
I have Visual Basic .NET 2003, and wanted to create a form that only shows the contents of a label. The form can't have a title bar or border. It seriously needs to just be the text inside the...
40
by: Geoff Jones | last post by:
Hi Can anybody help me with the following? It is driving me crazy!!! I'm trying to produce a non-rectangular form as follows: (1) Produce a bitmap e.g. gif, using paint shop pro 5. (2) The...
4
by: Simon Verona | last post by:
I have a class that provides functionality that is around my application. One function it provides is a "PleaseWait" method, which displays a popup please wait form. This works as a pair of...
3
by: talk2ayan | last post by:
I need to change the opacity of some part of a form (e.g. vertically 1/2)....If i set opacity from property it affects the whole form. Can anyone help me in this regard?
4
by: tommaso.gastaldi | last post by:
I found useful to use transparent controls like: '---------------------------------------------------------------------------------- Public Class UserControlTransp Inherits...
9
by: mohit.akl | last post by:
Hey guys & gals I am havng trouble modifying the control box. I want to make the maximise button invisible and have minimisise button instead of it. Like this _ X (not like _ o X ) How...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.