Developer technologies | Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
picEnemy.Location.Y.Equals(enemyposition)
I tried this and it didn't work, any ideas?
A set of .NET Framework managed libraries for developing graphical user interfaces.
Answer accepted by question author
Try another statement: picEnemy.Top = enemyposition.
Use picEnemy.Left to change the X.