470,815 Members | 1,237 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

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 1539
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

Post your reply

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

Similar topics

1 post views Thread by Richard Saville | last post: by
1 post views Thread by Ricardo Furtado | last post: by
3 posts views Thread by Andreas Kammann | last post: by
6 posts views Thread by junk | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.