Hi,
I'm a novice in C#. I wrote a program to export data from datagridview. While exporting, a pop-up window shows the progress of file exporting.
The code is as follow:
The progress bar modal window showed up while exporting data, but the progress bar is not updated. I tried reportprogress but it didn't work. Probably I didn't use it in the right way.
Can anyone help me with this? I have no idea how to do it.
Thanks in advance!
I'm a novice in C#. I wrote a program to export data from datagridview. While exporting, a pop-up window shows the progress of file exporting.
The code is as follow:
Code:
BackgroundWorker bgw = new BackgroundWorker();
bgw.DoWork += delegate
{
//Code for exporting data
};
bgw.RunWorkerAsync();
FrmProgress progress = new FrmProgress();
progress.Show();
bgw.RunWorkerCompleted += delegate
{
progress.Close();
};
Can anyone help me with this? I have no idea how to do it.
Thanks in advance!
Comment