jtran007
asked on
c# progressbar with number% displayed inside progress bar
Hi,
I'd like to display %number inside the progress bar. I don't know how to do it?
Could you advise me on it?
Thanks,
JT
I'd like to display %number inside the progress bar. I don't know how to do it?
Could you advise me on it?
Thanks,
JT
Using simple calculations you can do that. try this:
int cal_percent = (int)(((double)(myprogress Bar.Value - myprogressBar.Minimum) /
(double)(myprogressBar.Max imum - myprogressBar1.Minimum)) * 100);
on the other hand, if you are looking for some kind of tutorials, u can get it from here.
dreamincode.net/forums/top ic/62979-a dd-the-per cent-into- a-progress -bar/
int cal_percent = (int)(((double)(myprogress
(double)(myprogressBar.Max
on the other hand, if you are looking for some kind of tutorials, u can get it from here.
dreamincode.net/forums/top
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Also see this helpful article:
http://www.dreamincode.net/forums/topic/94631-add-the-percent-into-a-progress-bar-updated/
http://www.dreamincode.net/forums/topic/94631-add-the-percent-into-a-progress-bar-updated/
You can also check here:
http://www.codeproject.com/KB/progress/TheBestProgressBarEver.aspx
http://www.codeproject.com/KB/progress/TheBestProgressBarEver.aspx
ASKER
Thanks,
JT
JT
http://www.debugging.com/bug/23495