Page 1 of 1

Clickable axes

Posted: Fri Jan 28, 2005 2:09 pm
by 9080952
Hi,

I am working with clickable axes, and check on the number of mouse clicks, but the events always returns with 1 mouse click.

The code looks like:
private void tChart1_ClickAxis(object sender, System.Windows.Forms.MouseEventArgs e)
{
int noClicks = e.Clicks; <-- always returns 1 mouse click ??

Any idea what might be wrong ..

Many thanks in advance.

Best regards,
Antoon Koster
Netherlands

Posted: Fri Jan 28, 2005 4:54 pm
by Pep
Hi Antoon,

it works fine here using the latest Build available and the following code :

Code: Select all

private void tChart2_ClickAxis(object sender, System.Windows.Forms.MouseEventArgs e)
{
	int c = e.Clicks;
	label1.Text = c.ToString();
}