Painting custom background of parent and parent children in C#
I am trying to use this tutorial so that I can have a transparent button. It works fine for the main background, but it doesn't draw over the other children. If I use BringToFront() it then doesn't have the other child's drawing where it should be. I have started to get around it by adding this to the code: foreach (Control child in Parent.Controls) { if(child != this) { InvokePaintBackground(child, pea); InvokePaint(child, pea); } } And although I get some of what I want, it's in the wrong location (on the left instead of in the middle where it shoudl be) and the shapes which are drawn in the