I made a progressbar-control, which is supposed to write the percentage in the middle of the progressbar, but it doesn't work. Why?!
Code:class PProgressBar : ProgressBar { public PProgressBar() : base() { } protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); e.Graphics.DrawString((100 * this.Value / this.Maximum).ToString(), new Font("Arial", 8.25f), Brushes.Black, new PointF(this.Size.Width / 2 - 10, this.Size.Height / 2 - 8)); } }