Strange Offset Between the Coordinations of Two Points in Dual Display

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Mingle (zhangming_at_tamu.edu)
Date: 02/09/04


Date: Mon, 9 Feb 2004 15:33:47 -0600

Hi, all

I am developing a program for displaying two pictures separately in two monitors ( A and B). The goal is: when the mouse pointer is pointed to a picture loaded in picturebox1 in A, a "virtual" mouse pointer is drawn at the same location in picturebox2 in B. The program works well for two monitors with the same size (note: NOT the same resolution), even when I set two different resolutions for them, the mouse pointer locations in the two pictureboxes are exactly the same. BUT, if two monitors with different size (e.g. 15'' and 19'') are used, there will be a strange offset between the locations. Did I miss something in the program?

Thanks a lot.

Ming