I want to make a picturebox transparent over 2 labels. I have this form. I want it to appear over "Yes" and "No", but while me able to see "Yes" and "No" integrally, not croped like that.
Asked
Active
Viewed 262 times
1
-
1What are you targetting: Winforms, WPF, ASP..? __Always__ tag your question correctly! – TaW Dec 04 '16 at 21:54
-
2Welcome to Stack Overflow! You can take the [tour](http://stackoverflow.com/tour) first and learn [How to Ask a good question](http://stackoverflow.com/help/how-to-ask) and create a [Minimal, Complete, and Verifiable](http://stackoverflow.com/help/mcve) example. That makes it easier for us to help you. – Alexandre Tranchant Dec 04 '16 at 21:55
-
1Overlapping controls cannot be transparent, only nested ones can. Often painting and drawing the content is the best solution. – TaW Dec 04 '16 at 21:55
-
3I'm using Winforms – Adelin Rau Dec 04 '16 at 22:11
1 Answers
0
Assuming you're using the Winform designer, you can right click a control and select 'Bring to Front' or 'Send to Back' from the context menu to change the control's 'z-order.'

Nigrimmist
- 10,289
- 4
- 52
- 53
-
3If I 'send to back' the 'X', there will be the corners from answer's labels over it, so the problem is the same. – Adelin Rau Dec 04 '16 at 22:17
-
-
I tried to make labels's back color transparent but it won't work. ( `label4.BackColor = Color.Transparent` ) – Adelin Rau Dec 04 '16 at 22:32
-
It works for me : http://c2n.me/3F7hloX.png, you do something wrong – Nigrimmist Dec 04 '16 at 22:42