Stéphane Max

Stéphane Max

  • NA
  • 16
  • 764

mschart : scroll by code using a scroll bar external to the chart

Dec 19 2021 12:46 AM

Hello
I am totally beginner (I come from delphi) and I am having difficulties with the mschart.
In Delphi you just have to move the mouse with the left button pressed to scroll the chart.
I would like to be able to scroll my chart horizontally with an external scrollbar to the chart, but I don't know how to do this, since I have 5 chartareas.
I don't want to use the one displayed with the zoom because I don't want to use the zoom. Instead of zooming I change the chart1.ChartAreas [o] .AxisX.Maximum property and this is exactly what I want to get.
All your tips and examples will be welcome.
Thanks for your help.