Hi,
Here's what I am trying to do:
ITrackCancel myTrackCancel = new TrackCancelClass();
myTrackCancel.Reset(); //no problem here
myTrackCancel.CancelOnClick = false; // I get a System.NotImplementedException here
The exception message is "The method or operation is not implemented".
Has anybody experienced this before? Do I need to do anything to the myTrackCancel beforehand so I can set those bool values?
Thank You,
Sukhjit
Just try not to reset the TrackCancel object before setting its CancelOnClick property.
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//004200000235000000
ITrackCancel.Reset:
"Resets the manager after the associated operation is finished."
"The Reset method should be called just before a process that may be cancelled, such as a lengthy operation, begins. The Reset method sets the state of the CancelTracker to uncancelled and returns the internal counter, which is used to update the Progressor to zero."
See this example code where it doesn't implement the 'Reset' method:
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/d/00010000001w000000.ht...
Let me know if it doesn't help.