PictureBoxes Intersection in C-sharp
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:
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.
Re: PictureBoxes Intersection in C-sharp
Put a break point and check out the two ClientRectangle values. See if they are what you think they are. They maybe relative to the individual PictureBox... not sure... Check their values...