Hi, I am working on a small animation project in MFC. I have a line of code that looks like this : pictureBox1->Location=System:: Drawing::Point(x,y); I have x and y generating random number placing the picture box on the screen randomly. Basically I have a ball rolling around a square shaped pool table. I would like the ball (actually its a square pic of a ball) to disappear when it hits the corner where the pocket is but I dont know what syntax to use for that. The point I need the ball to vanish is at (-30,-32). I wanna say : If (pictureBox1.....==(-30,-32) then vanish, basically. Any suggestions would be great. If more info is needed let me know.
Thanks!!