-
May 8th, 2010, 11:58 AM
#1
PictureBoxes Intersection in C-sharp
Hello All.
I have just started to study C-Sharp and i'm having trouble checking if 2 picture boxes intersect each other.
I wrote this code:
if (pictureBox1.ClientRectangle.IntersectsWith(pictureBox2.ClientRectangle))
MessageBox.Show("PictureBoxes Intersect each other");
but the answer seems to be True always, even if the two pictureboxes are on other sides of the forum...
Please help me.
I am using Visual Studio 2008.
Thank you.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|