public int ClientXToDisplayRectX(int x) { int xPos = x - this.BorderWidth; if (this.HScroll) xPos += this.hScrollBar.Value; return xPos; }