tags:

views:

41

answers:

1

Hi,
I have a bunch of controls laid out and I want to be able to drag an image over and around the controls.

My problem is that the image is broken up by the borders of the controls.

My question is: How do I register that the control has a border, and how do I find out how much the control's ClientRectangle is affected by this.

Also, how can I draw onto the borders of my child controls? I want the image to display onto the borders, so I need to be able to render to the border area, not just within the area of the child controls.

I can imagine that there will be a lot of PaintToBitmap code workarounds in my future, but it would be nice to think that there's something out there I can use in this situation...

A: 

Can you use a PictureBox that has a high z-index so that it always appears over other controls?