Progressbar

Progressbar - VB/VBA/VBS - Programmation

Marsh Posté le 17-08-2004 à 20:20:47    

J'ai une boucle qui doit faire avancer une progressbar, mais je ne l'a voie pas avancer!!
 
 
For i = 1 To 100
     
    ProgressBar1.Value = i
 
Next
 
Qu'elle est le problème?

Reply

Marsh Posté le 17-08-2004 à 20:20:47   

Reply

Marsh Posté le 17-08-2004 à 22:28:57    

Rajoute l'instruction DoEvents dans ta boucle pour que l'affichage puisse se rafraichir.


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
Reply

Marsh Posté le 18-08-2004 à 09:59:18    

ProgressBar1.Refresh, smieux :o


---------------
Whichever format the fan may want to listen is fine with us – vinyl, wax cylinders, shellac, 8-track, iPod, cloud storage, cranial implants – just as long as it’s loud and rockin' (Billy Gibbons, ZZ Top)
Reply

Marsh Posté le 18-08-2004 à 10:02:42    

Next i ?

Reply

Marsh Posté le 18-08-2004 à 10:29:38    


Le "i" est facultatif. Mais ça a l'avantage de rendre le code plus lisible quand il est spécifié.


---------------
Whichever format the fan may want to listen is fine with us – vinyl, wax cylinders, shellac, 8-track, iPod, cloud storage, cranial implants – just as long as it’s loud and rockin' (Billy Gibbons, ZZ Top)
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed