c# - how to check the click event handler for ms chart control -
hi using ms chart control in win-forms application.
i have problem mouse click event handler chart control. need check if mouse click event chart control true have done code
bool this.kpichartcontrol.mouseclick = false; if (this.kpichartcontrol.mouseclick != true) { //do something..... } error : event system.windows.forms.control.mouseclick can appear on left hand side of += or -=
would 1 pls on this.......
i need check if mouse click event mschart true " "....
modified code :
this.kpichartcontrol.mouseclick+= new mouseeventhandler(void (object , mouseeventargs e))
still giving error can me on this...
modified code :
if( this.kpichartcontrol.mouseclick+= new mouseeventhandler(void (object sender , mouseeventargs e)) == true) { // }
error :invalid term void
you need register event; such:
this.kpichartcontrol.mouseclick += (obj, sender) => { //do }
see also: http://msdn.microsoft.com/en-us/library/aa645739(vs.71).aspx
Comments
Post a Comment