I have a VB6 baseball game with outfielders and infielders represented by their names on labels on a baseball stadium image within a picturebox control. There's a white shape (ball) that moves toward the outfielders. I want to make the ball stop when it surpasses the XY coordinate of the outfielder label that the ball is traveling toward. The XY coordinate for the very center of a label would work best if I could get those values somehow. How can I do this?
I don't want to use the .top or the .left attributes of the labels to make the ball stop because then one has to always uses straight-oriented ballpark photos/images. If a ballpark image is from an angle, then the ball won't travel the full distance to the label if you use the .top or the .left attributes------which is what it does now.
I have found a number of examples showing how to get XY cursor position of the mouse, but none that show you how to get the XY position of a label relative to the picturebox control on which that label is located.