vidiware Posted January 14, 2003 Posted January 14, 2003 I have VB.NET with image boxes (just an easy game): What is a fast (Both coding and CPU usage) way to test if: Image1 is inside Image2, and then execute the sub Sub1()? ________ | | | Pic1 _|_____ | | | | |_____|_| Pic2 | |______| Can anyone make some easy code? Quote
*Gurus* divil Posted January 14, 2003 *Gurus* Posted January 14, 2003 If Panel1.Bounds.IntersectsWith(Panel2.Bounds) Then 'Execute sub here Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.