As of 2014, I could not get the above solution to work in VS2008, C #. But I managed to do the following:
private void frmGraph_VisibleChanged(object sender, EventArgs e) { ZGraphComponent.RestoreScale(ZGraph.GraphPane); }
In the "VisibleChanged" event handler for the window containing the graph component, I call the "RestoreScale" method on the graph component, passing the main panel of the graph as an argument.
source share