views:

52

answers:

1

I want to display a non-zoomable zedgraph. How do i disable mousewheel zooming function on zedgraph?

A: 

If zgc is your ZedGraphControl instance, use:

zgc.ZoomButtons = MouseButtons.None;
zgc.ZoomButtons2 = MouseButtons.None;

This will disable zooming by selecting area with mouse.

You will also need to set:

zgc.ZoomStepFraction = 0;

in order to disable zooming using mouse wheel.

Gacek