private void playBarClicked(object sender, MouseEventArgs e) { if (e.X >= size) { sliderButton.loc.X = e.X; progress = 1.0 * (sliderButton.loc.X - size) / (193 * size / 64); if (playing) playSong(); Invalidate(); } }