Set the property .IsZoomOnMouseCenterto true for the control:
zedGraphControl1.IsZoomOnMouseCenter = true;
You can also change the settings for horizontal and / or vertical scaling if you want to allow the graphic to only scale (stretch) along one axis:
zedGraphControl1.IsEnableHZoom = true;
zedGraphControl1.IsEnableVZoom = false;
source
share