Page 1 of 1

Overlay progress bar

Posted: Mon Oct 22, 2012 4:44 pm
by jamesearl
I was wondering, how do I get the current value of the % value if using the default value of the Progress Bar Overlay used in PrimalForms.

Overlay progress bar

Posted: Tue Oct 23, 2012 4:17 am
by davidc
The percentage is calculated as follows:

$percentage = ([double]$progressbarpercent1.Value / [double]$progressbarpercent1.Maximum) * 100;

If you Maximum is 100 then the percentage is simply the contents of the Value property.

David

Overlay progress bar

Posted: Thu Oct 25, 2012 10:35 am
by jamesearl
davidc,
Sorry for my delayed response. Your solution worked perfectly :)