Note that there are some explanatory texts on larger screens.

plurals
  1. POset location of form instance
    text
    copied!<p><img src="https://i.stack.imgur.com/E18Jj.jpg" alt="enter image description here"></p> <p>I am working on this.. the locations of the marker is in the database..<br> this is <strong>not</strong> google's API.<br> this is <a href="https://greatmaps.codeplex.com/SourceControl/latest#Demo.WindowsForms/Forms/MainForm.cs" rel="nofollow noreferrer"><strong>GMap.Net</strong></a> for windows.</p> <p>this is the code..</p> <pre><code>For Each dtrow In markerDtable.Rows Dim marker As New GMapMarkerGoogleGreen(New PointLatLng(dtrow("Latitude"), dtrow("Longitude"))) markersOverlay.Markers.Add(marker) Next </code></pre> <p>I don't really understand so much, just experimented on code to get their supposed to be <code>latlng</code> and magically it appeared how I wanted it.</p> <p>how can I make that look like this.. <em>(this is only an emulation, I just dragged the <code>form</code> to what place I want them to be)</em> <img src="https://i.stack.imgur.com/mZzMR.jpg" alt="enter image description here"> only <code>form2</code> and I only need its instances.. when I click the marker, <code>form2</code> appears right beside it.</p> <p><strong>UPDATE:</strong> I have my coordinates, but how can I make them appear like that? from my late versions, I use this.. <code>form2.Location = marker.LocalPosition + New Point(20, -240)</code> - to offset</p> <p>but that code is pre-defined, hard coded. and that's not my goal. I want it on a sub, just like the code above (for markers) thank you for helping.</p> <p><strong>UPDATE2:</strong> current code - shows the three forms, but does not go to the location of the markers</p> <pre><code> For Each dtrow In markerDtable.Rows Dim marker As New GMapMarkerGoogleGreen(New PointLatLng(dtrow("Latitude"), dtrow("Longitude"))) markersOverlay.Markers.Add(marker) Dim f As New Form2 f.Location = marker.LocalPosition f.Show() Next </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload