Quote Originally Posted by ThermoSight View Post
Have you tried moving the "int xcoord" statement outside the case statement ? (same with ycoord).
Quote Originally Posted by BigEd781 View Post
Please go and study variable lifetime/scope in C#.
@ThermoSight, thankyou so much! Hours of frustration over.

@BigEd781, I've read that article now and I understand what I was doing wrong, thanks a bunch.