Hi!
Maybe I am doing something wrong.
I need to change the chart cursor from default to custom sometime.
I use INMouse
Service for that goal.
INMouse
Service _mouse
Service = (INMouse
Service)nChartControl1.View.Get
ServiceOfType(typeof(INMouse
Service));
I’ve managed to change cursor to a custom. But when I set cursor back to default I got exception.
I’ve attached a simple project to reproduce the exception.
Steps to reproduce:
1) Run the project. It has simple chart and 2 buttons in the toolbar: "Default Cursor" and "Custom Cursor".
"Default Cursor" button is checked by default.
2) Check "Custom Cursor" button and move cursor to the chart. You’ll see that cursor is changed to custom
3) Check "Default Cursor" button and move cursor to the chart. You’ll get “System.ObjectDisposedException: 'Cannot access a disposed object. Object name: 'Disposed 'Cursor' can no longer be used.'.'’ exception.
Could you help me in this situation, please?