Another, simpler approach:
Code:public bool DoPicturesIntersect(PictureBox square1, PictureBox square2) { return square1.DisplayRectangle.IntersectsWith(square2.DisplayRectangle); }
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 4 of 4
Threaded View
|
Click Here to Expand Forum to Full Width |