Hi,
I’m trying to learn from the ZoomToFullExtent sample: wiki.thinkgeo.com/wiki/Sourc…100415.zip
I have a problem with running this code. I copy-pasted this code to VS2010 and I’ve got an error:
Error 1 ‘ThinkGeo.MapSuite.DesktopEdition.WinformsMap’ does not contain a definition for ‘Image’ and no extension method ‘Image’ accepting a first argument of type ‘ThinkGeo.MapSuite.DesktopEdition.WinformsMap’ could be found (are you missing a using directive or an assembly reference?) C:\Users\Win7Pro32b\Documents\Visual Studio 2010\Projects\ZoomToFullExtent_nieudane\ZoomToFullExtent_nieudane\Form1.cs 74 17 ZoomToFullExtent_nieudane
Can you help me? What is this “Image” in Map.Image?
Problem with ZoomToFullExtent sample
Hi Bart,
The ZoomToFull sample is based on Service Edition which only needs to referring the Core DLL. But the error reported from you seems based on Desktop Edition, so, we can’t use the whole codes on the Desktop edition directly.
The map “Map.Image = bitmap;” from the sample actually is just a PictureBox control, so it includes an Image property designed by Microsoft. However, In desktop Edition, we don’t need to use the PictureBox to contain a map bitmap and also we don’t need the MapEngine in the codes. I think we can learn more on how to use the Desktop Edition from the HowDoI samples of Desktop Edition.
Any questions don’t hesitate to let us know.
Thanks,
Johnny
Problem solved, Thanks.
Hi Bart,
The samples from Wiki are not HowDoI samples. HowDoI samples are installed with the productions. If you want to check our HowDoI Samples, please download the WinForms Desktop Edition for free and install it. Then you should can find all kinds of samples based on the Desktop Edition from the installation folder and I guess you would love those useful samples.
Download the Desktop Edition for free: thinkgeo.com/map-suite-developer-gis/desktop-edition/
Download the Service Edition for free: thinkgeo.com/map-suite-developer-gis/services-edition/
More products download: thinkgeo.com/map-suite-developer-gis/
If any other thing confused, please feel free to let us know.
Thanks,
Johnny
Hi Bart,
Good to hear it works.
Any questions please feel free to let us know.
Regards,
Johnny