Pooja,
Thanks for your post,
Actually, you have to cached the Google maps tiles first, then you can run your application with these tiles correctly in the offline mode, The logic is that if you dose not cache the google maps tiles, it has to connect the google maps server to request the data. Here are the code for the Google maps below:
private void TestForm_Load(object sender, EventArgs e)
{
// Set the full extent and the background color
winformsMap.MapUnit = GeographyUnit.Meter;
winformsMap.CurrentExtent = new RectangleShape(-13939426.6371, 6701997.4056, -7812401.86, 2626987.386962);
GoogleMapsLayer googleMapLayer = new GoogleMapsLayer();
googleMapLayer.CacheDirectory = @"C:\GoogleMapImageCache";
LayerOverlay layeroverlay = new LayerOverlay();
layeroverlay.Layers.Add(googleMapLayer);
winformsMap.Overlays.Add(layeroverlay);
winformsMap.Refresh();
}
You can see there is a property that names CacheDirectory, it represents the cache folder in your own computer, when you in the online mode, it will cache the Google Map tiles to this special folder, so if you are in offline mode and the tiles has been cached, you can run your application in the offline mode correctly.
If you have any other questions please let me know,
Thanks,
Scott,