Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to create large zoomin Button without toolbarbutton. I created a 'Zoomin Script' on axMapContorol. It worked is fine but I can't set cursor. My code is as follows:

IMapControl3 mapControl = (IMapControl3)FMap.Instance.axMapControl1.Object;
MemoryStream ms = new MemoryStream(LargeZoominCursor);
Icon icon = new Icon(ms);
mapControl.MouseIcon = (stdole.IPictureDisp)ESRI.ArcGIS.ADF.COMSupport.OLE.GetIPictureDispFromIcon(icon);
mapControl.MousePointer = ESRI.ArcGIS.Controls.esriControlsMousePointer.esriPointerCustom; 

This code doesn't call errors during the first time only. After checking SelectFeatureTool on ToolbarControl and pushing my custom zoomin botton, the above script doesn't work anymore. The cursor does not change.

The 'SelectFeatureTool' and 'Zoomin' still work with 'SelectFeatureTool' cursor.

How to create change cursor?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.