Enabling mouse wheel zooming in a Microsoft Chart Control
how to enable zooming in Microsoft chart control by using Mouse wheel I have the below code, i need to know how to make this event? in which class it is.. private void chData_MouseWheel(object sender, MouseEventArgs e) { try { if (e.Delta < 0) { chart1.ChartAreas[0].AxisX.ScaleView.ZoomReset(); chart1.ChartAreas[0].AxisY.ScaleView.ZoomReset(); } if (e.Delta > 0) { double xMin = chart1.ChartAreas[0].AxisX.ScaleView.ViewMinimum; double xMax = chart1.ChartAreas[0].AxisX.ScaleView.ViewMaximum; double yMin = chart1.ChartAreas[0].AxisY.ScaleView.ViewMinimum; double yMax = chart1.ChartAreas[0].AxisY