Using Progress Bar control in Login Form
Description :
Reference: http://angeldeeps.blogspot.com/2009/06/progress-bar-in-login-form.html
Description :
Reference: http://angeldeeps.blogspot.com/2009/06/progress-bar-in-login-form.html
Hi,
As per one member's question I am posting another solution for the same post.
To show percentage along with the progress bar just need to add the following code within the for loop.
progressBar1.Refresh();
int percent = (int)(((double)progressBar1.Value / (double)progressBar1.Maximum) * 100);
progressBar1.CreateGraphics().DrawString(percent.ToString() + "%", new Font("Arial", (float)10.25, FontStyle.Regular), Brushes.Black, new PointF(progressBar1.Width / 2 - 10, progressBar1.Height / 2 - 7));
You can change width and height based on your requirement.
--
Thanks & Regards,
Deepika
Editor
its really useful thanks a lot its nice code and application
Good post. I really need it.
Regards
Abhisek Panda