Page 1 of 1

Series click 'problem'

Posted: Tue Nov 10, 2009 1:16 pm
by 13052926
Hi

I have a context menu for my chart which I display when the user right-clicks anywhere on the chart face by placing code in the chart.mouseup event. That works fine.

If user right-clicks a series on the chart I need to pop up a different menu. I tried to do this by adding an event handler for the lines click event. This code is also correctly called. However directly after this code is called, the chart.mouseup event still fires so I end up with both menus appearing.

Anyone know the right way around this 'problem'? I'm developing in VB.NET.

Many thanks.

Re: Series click 'problem'

Posted: Wed Nov 11, 2009 12:19 pm
by 13052926
Do I feel stupid? Yes. Simply move the code from chart.mouseup to chart.click event. Problem solved.

Re: Series click 'problem'

Posted: Wed Nov 11, 2009 4:33 pm
by yeray
Hi rossm,

I'm happy to hear that you solved it!