private void chart2_MouseMove(object sender, MouseEventArgs e) { if (!this.DesignMode) { double newPosition = chart2.ChartAreas[0].AxisX.ScaleView.Position; chart用户来电.ChartAreas[0].AxisX.ScaleView.Scroll(newPosition); ScrollBarPositionDB.SavePosition(this, newPosition); Refresh(); Application.DoEvents(); } }