|
I'm a vb6 developer and haven't done anything with .net yet, but having said that, the XYtoLocation function must be passed the mouse coordinates in order to create the locations. In vb6, the event passes you the x and y of the mouse as parameters. You seem to be creating x and y as local variables and not assigning any values to them before calling the XYToLocation method. I may be missing something, but the way the code seems to work, you'll get the lat/long of whatever is in the top left corner of the map window (because that's (0,0) in the window and local integers are created with a value of 0) rather than anything to do with the mouse pointer.[/quote] |