Map double click event question
Posted: Thu Jan 18, 2007 5:30 am
Below code is not work,How fire click and double click event of a map?
private void map1_Click(object sender, System.Windows.Forms.MouseEventArgs e)
{
MessageBox.Show("Shape: "+map1.Labels[ map1.Clicked(e.X, e.Y)]+ " Value: "+map1.ZValues[ map1.Clicked(e.X, e.Y)].ToString());
tChart1.Chart.CancelMouse=true;
}
private void map1_DblClick(object sender, MouseEventArgs e)
{
MessageBox.Show("Shape: "+map1.Labels[ map1.Clicked(e.X, e.Y)]+ " Value: "+map1.ZValues[ map1.Clicked(e.X, e.Y)].ToString());
tChart1.Chart.CancelMouse=true;
}
Best Regards!!
private void map1_Click(object sender, System.Windows.Forms.MouseEventArgs e)
{
MessageBox.Show("Shape: "+map1.Labels[ map1.Clicked(e.X, e.Y)]+ " Value: "+map1.ZValues[ map1.Clicked(e.X, e.Y)].ToString());
tChart1.Chart.CancelMouse=true;
}
private void map1_DblClick(object sender, MouseEventArgs e)
{
MessageBox.Show("Shape: "+map1.Labels[ map1.Clicked(e.X, e.Y)]+ " Value: "+map1.ZValues[ map1.Clicked(e.X, e.Y)].ToString());
tChart1.Chart.CancelMouse=true;
}
Best Regards!!