Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To Show Progress
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
How To Show Progress
Divers
Thread ID:
01429958
Message ID:
01429958
Vues:
90
I have a C# class that is loopig through all the rows of an Excel file. For each row I raise an event. The process in started in a WinFoms app, and in the form I trap the event. I have a progress bar on the form. I kick off the process in the Shown event so it doesn't start before the form is up.

I'm calling this:
private void _ImportProcs_RowImported(object sender, RowImportedEventArgs e)
{
            _ShowMessage("Imported row " + e.Row.ToString() + " of " + e.MaxRows.ToString());

            progressBar1.PerformStep();   // Step us 1

            this.Refresh();

}
Problem is, the status bar isn't refreshing. What's the right way to do this???
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform