MouseDown error message

Dec 17, 2013 at 3:45 PM
Edited Dec 17, 2013 at 3:45 PM
I have developed an application for a big environmental organisation using map window as a GIS component into a Microsoft Access 2007 database. The application is now being tested on a Sandbox server.

The application works fine on my laptop but there seems to be problems with the ocx file on the server.

First I had to register the ocx by installing the full version of MapWinGIS to get the ocx properly recognised by the application.

But then, although the map application works and builds thematic maps as instructed, it seems that the MapMain.SendMouseDown events are not recognised.

Basically, when I try to zoom in or out with the mouse, an error message appears stating: 'the expression MouseDown you entered as the event property setting produced the following error: there was an error loading an ActiveX control on one of your forms or reports'

It is a bit strange as the map application works as long as the mouse is not used. As soon as I try to use the mouse to zoom or pan, an error message appears.

Do you know what the problem may be and how I could solve it?
Many thanks
Marc
Dec 17, 2013 at 4:44 PM
Hello Marc,
I have Axmap1.SendMouseMove = true after I added the Layers(important), maybe you should add Map.SendMouseDown = true at an appropriate place.
Greetings Maurits
Marked as answer by sacapuce on 12/19/2013 at 4:17 AM
Dec 18, 2013 at 10:01 AM
Thanks for that, I will try. I had added the SendMouse lines of code in the 'Form_Load' event section before adding the layers. I will add them after and see whether it changes anything (although it works on my laptop).
Marc
Dec 19, 2013 at 11:17 AM
Maurits,
It worked! Thanks for that, so helpful! :)
Cheers
Marc