I'm at a loss how to get my map to display when my form loads. I am using a GdiPlusRasterLayer. I add the layer to a layer overlay and add the overlay to the map. Then I try calling the Refresh method on the map and the raster image does not display. I have to manually zoom in, zoom out or resize the form before the image displays. I've tried:
WinformsMap.Refresh()
WinformsMap.Refresh(WinformsMap.Overlays[0])
even
GdiPlusRasterOverlay rasterOverlay = new GdiPlusRasterOverlay(fileName);
rasterOverlay.Lock.IsDirty = true;
rasterOverlay.IsVisible = true;
etc.
Nonetheless, the map does not display until I manually move or zoom the map. I am using Desktop Edition 4.0, .NET framework 3.5 an VS2010.
Thanks!