DMPGIS333

Change Mouse Cursor on Tool

Discussion created by DMPGIS333 on Sep 29, 2011
Latest reply on Feb 27, 2017 by Will.Walker
I can't seem to find exactly what I need here.  I am in VB .NET 2010 writing an Add In for ArcMap.  I have a tool that a user clicks then selects a polygon on the map view. After the tool is clicked, I would like to change the cursor to a crosshair.  Either the code I am using is wrong, or I am placing it in the wrong sub or function of the tool.

I have tried
        Dim pMouse As IMouseCursor = New MouseCursor
        pMouse.SetCursor(esriSystemMouseCursor.esriSystemMouseCursorCrosshair)
and
        Windows.Forms.Cursor.Current = Cursors.Cross

both initiated from the OnActivate() sub.  Any help would be great.  Thanks.

Outcomes