I have on form1 designer a windows forms chart control. In form1 constructor i added:
chart1.ChartAreas[0].AxisX.ScaleView.Zoomable = true;
chart1.MouseWheel += chart1_MouseWheel;
Then i have the MouseWheel event:
void chart1_MouseWheel(object sender, MouseEventArgs e)
{
MessageBox.Show("hi");
}
And in the designer i also added the event AxisViewChanged:
private void chart1_AxisViewChanged(object sender, ViewEventArgs e)
{
paintToCalaculate = true;
chart1.Invalidate();
}
But using a breakpoint in the MouseWheel event or on the AxisViewChanged event it's never get and stop there.