This line throws the exception (I'm talking about a windows form. the PointToClient is a method of the form):
double x = PointToClient(Cursor.Position).X / this.Width;
Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on.
What control is being accessed? I know I should use invoke, but what control should I invoke? I'm really puzzled.