When you first slap a GMap.NET control on your Windows form, there will always be a red cross in the middle of the map, clearly to indicate where the map center is should your application allow people to indicate something on the map. Sometimes, though, you’re really just showing a map and the red cross […]

This article was posted by Independent Software, a website and database application development company based in Maputo, Mozambique. Our website offers regular write-ups on technical and design issues, ranging from details at code level to 3D Studio Max rendering. Read more about Independent Software's philosophy, or get in touch with Independent Software.

When you first slap a GMap.NET control on your Windows form, there will always be a red cross in the middle of the map, clearly to indicate where the map center is should your application allow people to indicate something on the map. Sometimes, though, you’re really just showing a map and the red cross has to go.

The only catch here is that is cannot be done through the properties window of the control, but only in code:

And done.

Did this article help you out? Please help us find more time to write useful guides & articles like this by donating a buck or two. It'll keep us coffee-fueled. Thanks!

Trackbacks

  1. GMap.NET Tutorial – Maps, markers and polygons | Independent Software

Comments

3 3 Responses to “GMap.NET – Getting rid of the red cross in the middle of your map”
  1. Derek says:

    Thanks! 🙂

  2. Sumeyye says:

    Hi , I’m using windows form GMap. I want to add the GMap satellite and map view.What should I do?
    Thanks. (I am beginner)

Leave a Reply

Your email address will not be published. Required fields are marked *