AnsweredAssumed Answered

How to change the cursor of a maptool

Question asked by harmpie on Feb 12, 2016
Latest reply on Feb 12, 2016 by cmacleod-esristaff

I have created a maptool and I want to change the cursor of the tool to my own one

 

The code below doesn't change the cursor on the map. What's wrong with the code?

 

Code:

 

internal class MapTool1 : MapTool

{

     protected override Task OnToolActivateAsync(bool active)

     {

 

          Cursor = Cursors.Pen;

 

          return base.OnToolActivateAsync(active);

     }

 

 

     protected override void OnToolMouseDown(MapViewMouseButtonEventArgs e)

     {

 

          base.OnToolMouseDown(e);

     }

}

 

 

Outcomes