rhalko

Set Cursor Property for ArcGIS 10 Add-in Tool?

Discussion created by rhalko on Apr 12, 2011
Latest reply on Apr 15, 2011 by rhalko
Hello,

I have been recycling code to VB.NET from VBA for use as an add-in with ArcMap 10. I got my tool working with a freshly built form, and there is no problem there. The only issue remaining is to change the cursor when the tool is activated. I tried using the namespace info for the Cursor property, but had no luck.

http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Cursor_Property/001v0000009r000000/

Here is my code, but it doesn't do anything. What have I missed?

    Protected WriteOnly Property Cursor()
        Set(ByVal value)
            value = ESRI.ArcGIS.SystemUI.esriSystemMouseCursor.esriSystemMouseCursorCrosshair
        End Set
    End Property

Thanks in advance!
Rob

Outcomes