In my Winform I'm having a export function. On the Export_LinkClicked event all components in my DGV is exported into a "New" xls file everytime.
As u may understand that whenever the contents in DGV increases, it will take longer time to export & create the xls file. So.... to let the user know that "I'm working in background".... I think I should be displaying a progressbar as a part of best practise.
But.....
- I'm not able to understand that how can I track the progress of the export process????
- How will the progress of "Export process" in Form1 be read into this new Form2?
Best would be creating a new form and showing the ProgressBar on it. but again.....

1 answers
The only way you can track something like exporting a large amount of data is to have an idea of how long this is going to take to start with.
However, the problem is that this will differ between machines and also be dependent on what else may be running on the machine at the same time.
Frankly, unless there's likely to be a delay of at least 30 seconds the best approach in my view is to simply use a label to warn the user that a long running operation is taking place in the background and not to exit the program in the meantime.
answered one year ago by:
17279