I don't think that you have tried optimised compiling as I suggestested because the code you posted fails.
Also End If is a construct in its own right so you don't need all the multiple "End If"s
If ... Then
...
ELse If ... Then
....
Else If ... Then
...
End If
Your mix of libraries is puzzling. If you expect this to run on the device there should be a one to one equivalent of device and desktop libraries, either the same on both desktop and device where the library will run on both or a desktop version and the equivalent device version where they need to differ.
You don't need both ImageLib and ImageLibEx libraries, use one or the other.
Running and right clicking brings up a an error "Error loading map: MapLeicester.jpg" not the error you described.
I'm sorry but I don't have time to sort this out. Please post a simplified version that you have tested that actually runs and shows the errror in question.
EDIT:- However, luckily for you, I noticed that you are initialising the DrawerEx before activating the forelayer on frmGPS. You need to activate the forelayer first or the initialisation of DrawerEx (or Drawer from ImageLib) will not find a forelayer to draw on.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Last edited by agraham : 07-02-2009 at 08:45 PM.
|