473,395 Members | 1,791 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,395 software developers and data experts.

C# TransparencyKey question

I am working on layering a few picture boxes on top of each other in a
basic 3D grid, viewed from front and a little to the right, using
Visual Studio 05. I have color 128, 254, 128 set as the form's
transparency key and the corners of my one image that I am overlapping
that same color. The transparency works great and I can see right
through it, the problem is that I need to set it up to view the
picture box below it, not clean through.

Is there any way to set up the transparency to see picture boxes below
the transparent areas? Or does this need to be set up a different
way?

Thanks in advance for any help!
Dec 20 '07 #1
2 2237
<bi******@gmail.comwrote in message
news:d3**********************************@p69g2000 hsa.googlegroups.com...
>I am working on layering a few picture boxes on top of each other in a
basic 3D grid, viewed from front and a little to the right, using
Visual Studio 05. I have color 128, 254, 128 set as the form's
transparency key and the corners of my one image that I am overlapping
that same color. The transparency works great and I can see right
through it, the problem is that I need to set it up to view the
picture box below it, not clean through.

Is there any way to set up the transparency to see picture boxes below
the transparent areas? Or does this need to be set up a different
way?
The transparent areas "fall through" to the control that is the parent
of the transparent one. This means that if a picturebox belongs to the
Controls collection of the Form, the tansparent areas will show the
background of the form. If there is another picturebox in the middle, you
need to have your picture box on top contained in the picturebox in the
middle, rather than contained in the form.
The designer in Visual Studio does not let you drop a picturebox on
another picturebox (or at least I haven't been able to do it), so you will
have to arrange this setup through code.

Dec 21 '07 #2
Thank you, you've given me a great place to start!
On Dec 21, 2:35*am, "Alberto Poblacion" <earthling-
quitaestoparacontes...@poblacion.orgwrote:
>
* * *The transparent areas "fall through" to the control that is theparent
of the transparent one. This means that if a picturebox belongs to the
Controls collection of the Form, the tansparent areas will show the
background of the form. If there is another picturebox in the middle, you
need to have your picture box on top contained in the picturebox in the
middle, rather than contained in the form.
* * *The designer in Visual Studio does not let you drop a picturebox on
another picturebox (or at least I haven't been able to do it), so you will
have to arrange this setup through code.
Dec 21 '07 #3

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

Similar topics

0
by: kiplring | last post by:
It is about inside the .net framework. Anyone know or can guess TransparencyKey Implementation? First, It can be implemented by Region. Second, It can be implemented by Layer. Third, It...
0
by: Publicjoe | last post by:
Hi guys, I am writing an app that I wish to have a transparent background. In the InitializeComponent() method I set the members of the form to the following: //-- Code...
0
by: ddd | last post by:
Hi, I am building a simple windows form which mimics the windows media player. It user the wmplayer control, and has as transparencykey white. For some reason the player does not play the...
1
by: Brian | last post by:
If your like me, you have probably seen way too many demos of the opacity property of a form. Well I finally have a need for it and I am having an issue. I am trying to create a splash screen...
1
by: Derrick | last post by:
Hello all; I have a form with the Background color and TransparencyKey set to the same value. When I run this as a Windows App, everything works as it should. However, if I change this...
1
by: perspolis | last post by:
Hi all I used TransparencyKey in my form to hide portion of my form but when form is shown it shows flicker before displaying.. how can I remove this flicker?? thanks in advance
1
by: pigeonrandle | last post by:
Hi, I have a treeview which has some nodes whose text are too long to display, so, when i hover my mouse over the node a tooltip appears showing all the text, and then disappears almost...
1
by: VMI | last post by:
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...
3
by: bigdunka | last post by:
I am working on layering a few picture boxes on top of each other in a basic 3D grid, viewed from front and a little to the right, using Visual Studio 05. I have color 128, 254, 128 set as the...
8
by: Rainer Queck | last post by:
Hello NG, I had/have a bad flicker Problem with my Application. On starting some applications, while my app was running, the whole Display started to flicker. Even the desktop Icons! Looking...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.