Bonjour,
j'ai créé un winform et dans le cs je veux utiliser backgroundWorker1.
A l'exécution l'erreur "Le nom 'backgroundWorker1' n'existe pas dans le contexte actuel "
Je ne comprend pas pourquoi dans ce formulaire backgroundWorker1 n'est pas reconnu?
Code c# : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 private void GenereEtat() { progressBar1.Style = ProgressBarStyle.Marquee; progressBar1.MarqueeAnimationSpeed = 30; backgroundWorker1.RunWorkerAsync(); while (backgroundWorker1.IsBusy) { Application.DoEvents(); } progressBar1.Style = ProgressBarStyle.Continuous; progressBar1.Value = 0;
Please help..
Partager