M
Manikandan
Hi,
I have a form with progress bar.
I'm querying sql server with large number of records(around 1 lakh)
for export
The records are written to a text file
I'm showing the process running by updating the progress bar
If the form loses focus(i.e selecting any other application) means
progress bar is not updating
The coding is below
sProgressBar.Visible = true;
sProgressBar.Minimum = 1;
sProgressBar.Maximum = NoOfRows
sProgressBar.Value = 1;
sProgressBar.Step = 1;
For loop until the rec count
{
sProgressBar.PerformStep();
}
everything work's fine until has focus, if i open some other
application and form loses focus means progress bar is not showing
progress(not updated)
I have tried form.refresh(0 in activate method, it is also not working
Is there any work around available for this problem
Thank You,
Regards,
Mani
I have a form with progress bar.
I'm querying sql server with large number of records(around 1 lakh)
for export
The records are written to a text file
I'm showing the process running by updating the progress bar
If the form loses focus(i.e selecting any other application) means
progress bar is not updating
The coding is below
sProgressBar.Visible = true;
sProgressBar.Minimum = 1;
sProgressBar.Maximum = NoOfRows
sProgressBar.Value = 1;
sProgressBar.Step = 1;
For loop until the rec count
{
sProgressBar.PerformStep();
}
everything work's fine until has focus, if i open some other
application and form loses focus means progress bar is not showing
progress(not updated)
I have tried form.refresh(0 in activate method, it is also not working
Is there any work around available for this problem
Thank You,
Regards,
Mani