Note that there are some explanatory texts on larger screens.

plurals
  1. POreopen hidden form at new location
    text
    copied!<p>I am working on a map, google map for example. and the map is draggable, ofcourse.</p> <p>this is the whole code on <code>onMarker_Click</code> ..</p> <pre><code>For Each m In mList If item.ToolTipText = m Then Dim f As New Form2 Me.AddOwnedForm(f) With f .Show() Dim p As New Point p = item.LocalPosition + New Point(20, -240) .Location = p .Text = m End With Exit Sub End If Next </code></pre> <p>basically, this code generates a new form beside the point every time I click the marker.. gives me the result that I want, however, I can't use this code on <code>onMapDrag</code> event. Why? for every pixel dragged, it creates a new instance. </p> <p>My goal is to be able to drag the map, with form following the marker. but it seems impossible for me now. so what I am thinking today is..<br> I have 3 open forms displaying something and when I <em>drag</em> the map, form <em>hides</em> and after dragging, form <em>reappears</em> still beside the <strong>new positioned</strong> marker.<br> flow should be something like this : </p> <pre><code>onMarker_Click() 'Code on top onMapDrag() 'hide visible forms / close them onMouse_Leave() 'show hidden forms / reopen them but I need the same forms which were closed 'show hidden forms beside the marker 'since I cannot literally *drag* form2 'I am thinking of hiding it, and show it on the next destination after drag </code></pre> <p>please don't hesitate to ask if there is something you don't understand. I need this now. thanks SO people.</p>
 

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