It is just very simple control yet powerful too,
Simply assume that your
Excelsheet
having 2000 rows and you want to transfer these rows to DB.
Just set
MinimumValue
to 0 and
MaximumValue
to 2000 you can set this to runtime also after you get rows count in excel.
and then just set
StepSize
= 1,
after each row insertion just use
PerformStep
method which will make the
ProgressBar
value increasing and finally set
Value
Properties of
ProgressBar
to again 0 to draw it in initial state,
You could have
THIS[
^] article to be useful.
Please
vote and
Accept Answer if it Helped.