listen for events on graphics?

590
1
04-29-2010 08:21 PM
JacobMundt
New Contributor
Howdy folks,

I would like to create an event on mouseover of a graphic placed on the map.  In visual studio.  So, for example, on mouseover, I can call some code that throws a messagebox or something stupid like that....  First person to help me out gets a free beer at the UC.... 🙂
0 Kudos
1 Reply
JacobMundt
New Contributor
ooooo pick me pick me:

'''add this line to a form load or application startup event procedure.
       AddHandler ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.GraphicClicked, AddressOf ActiveMapDisplay_GraphicClicked

    ''' Event handler when a graphic is clicked on the map: open its infopopup window
    Private Sub ActiveMapDisplay_GraphicClicked(ByVal sender As Object, ByVal e As GraphicMouseEventArgs)
        MsgBox("hey - that tickles!!")
    End Sub

yep, drinking alone at the UC again.  Seriously, man RTFM.
0 Kudos