public HistogramBox SetBinWidth(double width) { if (this.InvokeRequired) { this.Invoke((Action)(() => SetBinWidth(width))); return this; } histogramView1.BinWidth = width; histogramView1.UpdateGraph(); Refresh(); return this; }