How to RemoveLayer?

Hi, Everyone, good afternoon.

I tried to load and remove layer.
But after remove layer(ex DEM) then the map removed together.
Please let me know how to remain the map after removelayer(DEM).

Thank you.

below are code and result images

  1. Load map
    axMap1.TileProvider = tkTileProvider.OpenHumanitarianMap;
    axMap1.CursorMode = tkCursorMode.cmPan;
    axMap1.Projection = tkMapProjection.PROJECTION_GOOGLE_MERCATOR;
    axMap1.KnownExtents = tkKnownExtents.keSouth_Korea;
    axMap1.ZoomBarMaxZoom = 15;
    axMap1.ZoomBarMinZoom = 7;
    axMap1.CurrentZoom = 7;
    image

  2. Load Image
    string demFileName = ofd.FileName;
    MapWinGIS.Image mydem = new MapWinGIS.Image();
    mydem.Open(demFileName);
    demlayerHandler = axMap1.AddLayer(mydem, true);
    image

  3. RemoveLayer
    axMap1.RemoveLayer(demlayerHandler);
    image

I experienced the same problem.
Workaround that worked for me:
reapply projection and knownExtents

p.s.: once I sorted out my problems with “LayerHandle” variables, this was no longer necessary.
caveat: initialize your (public/global) LayerHandle variables to -1 if not using
Dim LayerHandle as integer = AxMap1.addLayer()