Coding a Progress Bar
Posted on 2013-11-03
I have a c# application which reads through a transaction file processing each record within the transaction (could be 200 records per transaction). I have a Driver.cs program reading through each of the transactions from sequence 1 to last sequence. Some of the transactions will have an input requirement (indicated by a flag on the transaction itself) and when such a flag is encountered a call is made to an new form "InputForm1.cs" to take in the required input. These inputs are the only user interface in processing the transactions. I need to show a "Progress bar" to indicate to users that application is processing (especially when it in processing non input transactions).
I have tried putting a progress bar into the InputForm1 form and then calling the InputForm1 for the non-input transactions as well as input transactions and for the non input transactions, displaying the progress bar, but this just produces a lot of flicker.
Appreciate if anyone can advise on the best method of displaying a progress bar in these circumstances that will give a seamless display of % progress when non input transactions are being processed.