title: MS-Chart Zooming of x-axis with scroll bar in c#
body: <p>I have added the scroll bar to the x-axis of my mschart control using this link <a href="https://stackoverflow.com/questions/5141126/adding-a-scroll-bar-to-ms-chart-control-c/5146430#5146430">Adding a scroll bar to MS Chart control C#</a> and it worked as expected. But now my requirement is, I need zooming for both the axis. But since I removed Zoom reset button for x-axis, I have used the following to reset it by forcing.</p>
  
  <pre><code>private void chart1_AxisScrollBarClicked(object sender, ScrollBarEventArgs e)
  {
      // Handle zoom reset button
      if(e.ButtonType == ScrollBarButtonType.ZoomReset)        
      {
          // Event is handled, no more processing required
          e.IsHandled = true;
  
          // Reset zoom on X and Y axis
          chart1.ChartAreas[0].AxisX.ScaleView.ZoomReset();
          chart1.ChartAreas[0].AxisY.ScaleView.ZoomReset();
      }
    }
  </code></pre>
  
  <p>But it is not working properly. Please help me in fixing this in c#..</p>