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

Help - Picturebox on picturebox, both pictures transparent

13
Hello,
I have small problem, here's the situation:

There are a windows form - Form1;
And two picturebox'es - pictureBox1 and pictureBox2;
Those two pictures are transparent in some areas;

I put pictureBox1 all over the Form1, make form size = picture box size
and it makes nice transparent window;
But I need to put pictureBox2 on pictureBox1;

And there's a problem - transparent pictureBox2 areas shows not pictureBox1,
but Form1 background.

Is there any way to specify that current picturebox transparent areas shows control's view, over which that picturebox is ?

Thank you for the answer
Jan 29 '08 #1
3 1738
radcaesar
759 Expert 512MB
Why can't you hide a control which you don't want. if i was wrong, can you just explain your requirement in detail?
Jan 29 '08 #2
Plater
7,872 Expert 4TB
I think it has something to do with "who comes first" in the collection, and who is who's parent.
Like picturebox2's parent is Form, so it's "transparent" shows Form's background.
If you can make picturebox2 be a child of picturebox1, you might achieve your goal.
Jan 29 '08 #3
sin
13
I think it has something to do with "who comes first" in the collection, and who is who's parent.
Like picturebox2's parent is Form, so it's "transparent" shows Form's background.
If you can make picturebox2 be a child of picturebox1, you might achieve your goal.
You were right, now it works as it should.

Thank you
Jan 30 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Richard Saville | last post by:
I am trying to make a transparent pictureBox. MSDN says to use this.SetStyle(ControlStyles.SupportsTransparentBackColor, true); for the form and this.pictureBox1.BackColor = Color.Transparent; for...
2
by: Alex Gray | last post by:
Hi, I'm trying to make my PictureBox transparent to the BackgroundImage of the Form, not the BackColor of the form. Here's what i have: ---------------------------------------------------...
9
by: SStory | last post by:
I have a picturebox in my About form. would like to have a link to my company website. Wanted the links background to be transparent. It seems that no one knows how to do this. Have asked...
6
by: Rich | last post by:
Hello, I want to simulate the dynamic thumbnail display of Windows Explorer (winxp) on a form or pannel container. If I place a picture box on my container form/pannel and dimension it to the...
1
by: Ricardo Furtado | last post by:
in my app i must have several pictureboxes over the others. Some pictureboxes just have a couple of lines or rectangles, and absolutly nothing more but the image is an .BMP. So, my problem is that...
3
by: Andreas Kammann | last post by:
hi there, iam still looking for a transparent picture box , that works also with 2 pictureboxes over each other or working over an panel. i don't find solution. or is there out another custom...
6
by: junk | last post by:
Senerio: I have a custom user control which contains two control arrays. The user control has a group box in which the two control arrays are dynamically built. The two control arrays are...
1
by: blazingmavrick | last post by:
My problem consits of the following:- i am creating mulitple picturebox's, when the user double clicks on the picture box it opens the opendialog box to load a picture (jpeg only) into the picture...
3
by: kirk | last post by:
I have a form with a PictureBox control on it. The .Image property is set to a PNG file(which shows the picture of the US map) with some transparency in it. The .BackColor property is set to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...

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.