You need to look at the
Rectangle.Contains[
^] method. If you are moving the point up, use the TLHC of your moving PictureBox, if down, then use the BLHC. (obviously, if it moves sideways adjust the Left and Right there).
In both cases, use the rectangle from the stationary control.
[edit]Oops! Gave you the wrong link: should have been to Contains(Point) instead of Contains(Rectangle). Corrected - OriginalGriff[/edit]
"I don't understand"
OK, I'll try to explain a little more:
Each Picture box has a Rectangle, which consists of it's Location (the Top Left Hand Corner or TLHC) together with it's Width and Height properties.
Each Rectangle has a method called Contains which has an overload taking a Point.
If you call the Rectangle.Contains Method with the Point as the TLHC of your moving PictureBox, the bool result will be true if the TLHC of your moving PictureBox is inside the rectangle of the stationary one.
You can access the TLHC of a control via it's Location property, and the Rectangle via the Bounds property.
So:
movingPictureBox.Top -= 20;
if (stationaryPictureBox.Bounds.Contains(movingPictureBox.Location))
{
MessageBox.Show("Inside");
}
Does that make a bit more sense?