Public Sub map_OnMarkerClick(ByVal item As GMap.NET.WindowsForms.GMapMarker, ByVal e As System.Windows.Forms.MouseEventArgs) Handles map.OnMarkerClick
If item Is camera1 Then
'do code
ElseIf item Is camera2 Then
Dim f2c2 As New Form2
'do code
ElseIf item Is camera3 Then
Dim f2c3 As New Form2
'do code
End If
End Sub
worked for me. ↧
New Post: how to set separate marker events in vb.net
↧