如何检查 MS 图表控件的单击事件处理程序
您好,我在 win-forms 应用程序中使用 ms 图表控件。
我对图表控制的鼠标单击事件处理程序有疑问。我需要像这样检查图表控件的鼠标单击事件是否为真,然后执行类似的操作我已经完成了这样的代码,
bool this.kpiChartControl.MouseClick = false;
if (this.kpiChartControl.MouseClick != true)
{
//do something.....
}
ERROR : The event system.windows.forms.control.mouseclick can only appear on left hand side of += or -=
任何人都可以帮忙解决这个问题......
我需要像这样检查mschart 的鼠标单击事件是 true“做某事”...
修改后的代码:
this.kpiChartControl.MouseClick+= new MouseEventHandler(void (object , MouseEventArgs e))
仍然给出错误可以帮助我吗...
修改后的代码:
if( this.kpiChartControl.MouseClick+= new MouseEventHandler(void (object sender , MouseEventArgs e)) == true)
{
// do something
}
错误:无效术语 Void
Hi I am using ms chart control in win-forms application.
I have a problem with mouse click event handler for chart control. I need to check that like this if the mouse click event for chart control is true then do something like this i have done the code like this
bool this.kpiChartControl.MouseClick = false;
if (this.kpiChartControl.MouseClick != true)
{
//do something.....
}
ERROR : The event system.windows.forms.control.mouseclick can only appear on left hand side of += or -=
would any one pls help on this.......
I need to check like this if mouse click event for mschart is true " do something "....
Modified code :
this.kpiChartControl.MouseClick+= new MouseEventHandler(void (object , MouseEventArgs e))
still it was giving error can any help me on this...
MODIFIED CODE :
if( this.kpiChartControl.MouseClick+= new MouseEventHandler(void (object sender , MouseEventArgs e)) == true)
{
// do something
}
Error :Invalid term Void
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要注册参加活动;像这样:
请参阅:http://msdn.microsoft.com/ en-us/library/aa645739(VS.71).aspx
You need to register to the event; as such:
See also: http://msdn.microsoft.com/en-us/library/aa645739(VS.71).aspx