Hi,
I've panel in my windows form, and i want to get the exact mouse position
when i double click.
I used:
Point p = this.panel1.PointToClient(Cursor.Position);
but now, if i'm pointing on the top-left corner of the panel i get the
cordinates (0,0), and then, i'm scrolling with the mouse whell, and then i
double click again, on the same corner and i get the same result.
I understand why it happens, my question is, how can i get the exact
cordinates based on the location of the panel and the form.
for example, if my panel size is 40,100 and if my top left corner is 0,0 and
after i'm scrolling i'm actullay pointing on the middle of the panel, so i
want to get 40,50, and then after one more scroll i want to get 40,100...
hope i was clear... :-)
Thanks a lot...