Hello all,
I have been trying to use the Gmap.Net.Windowsforms Control
I do have it in my Components tab but When I try to add it to my Form it Does Absolutely NOTHING.
I dont know why, But it will add every other component I try.
Can someone please help? Thanks. :)

Dani AI

Generated

As hinted there is documentation out there and suggested hosting the map in a container, but the symptom "drag from toolbox -> nothing happens" usually points to a few concrete, fixable issues. Common causes are: the toolbox item points to the wrong assembly (the core library is non-visual), the control throws a design-time exception that Visual Studio suppresses, or the project/target framework differs from what the control was built against.

Quick checklist to isolate and fix the problem:

  • Confirm the toolbox entry is for GMap.NET.WindowsForms.GMapControl (not the core DLL). Right-click Toolbox -> Choose Items... -> Browse to the GMap.NET.WindowsForms DLL and make sure GMapControl is checked.
  • Add project references explicitly to both GMap.NET.WindowsForms.dll and GMap.NET.Core.dll. Build and inspect the Output window for errors when you drag the control (designer exceptions appear there).
  • Try adding the control at runtime to see if it’s a design-time issue. Example VB.NET code to create and show a map:
Dim gmap As New GMap.NET.WindowsForms.GMapControl()
gmap.Dock = DockStyle.Fill
GMap.NET.GMaps.Instance.Mode = GMap.NET.AccessMode.ServerOnly
gmap.MapProvider = GMap.NET.MapProviders.GoogleMapProvider.Instance
gmap.Position = New GMap.NET.PointLatLng(37.7749, -122.4194)
Me.Controls.Add(gmap)

Additional troubleshooting notes: check the project’s target .NET framework (switch from a Client Profile to the full framework if needed), try the control in a new blank WinForms project to rule out project settings, and look for the control in the component tray (non-visual items appear below the designer). If Visual Studio swallowed an exception, run it and watch the Output or start Visual Studio with logging to inspect ActivityLog.xml. If layout is the problem, embed the control in a Panel or set Dock/Size explicitly after adding it.

Recommended Answers

All 2 Replies

Hi,

Perhaps you can find some information,
How to use this Control.

I have never used the Gmap control, but vb.net generally dislikes putting inserting controls directly onto the page. Try inserting the gmap into something such as a panel, or an existing control within the page that can "house" the gmap.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.