Sérieusement, la conception de tout le programme qui est , a mon niveau assez conséquent m'a pris moins de temps que cette foutus progressBar.

J'ai lu plein de tutos la dessus en anglais,en anglais indien, en allemand et puis un peu ici.
Rien ne marche, personne ne sait comment la faire marcher

Alors je vais bien décrire mon probleme espérant me lever demain matin et trouver une réponse venant d'un pro , un vrai, pcq y'en a qu'ici.

Voila mon bout de code
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
       public Patch(string IDZ, string INDEXZ, string COMEN)
        {
            
            int a = 0, b= 0; string c;
            a = int.Parse(FILEIO.Patch_Params[0]); //ID Set ok!
            if (FILEIO.Patch_Params[1].ToString().ToLower().Trim() == "server") b = 0;
            else if (FILEIO.Patch_Params[1].ToString().ToLower().Trim() == "images") b = 1;
            else if (FILEIO.Patch_Params[1].ToString().ToLower().Trim() == "sprite") b = 2;

            //Index Set OK!
            c = FILEIO.Patch_Params[2];
            PatchIt(b);
            LogItin(a,LogIt(a,c));
                      
       }

        static void PatchIt(int index) //Constructor
       {
           //Stored ID for log entry.
           //Starting index treatement.
           String filename = null;
           switch (index)
           {
               case 0: { filename = "server.bin"; break; }
               case 1: { filename = "images.bin"; break; }
               case 2: { filename = "sprite.bin"; break; }
           }
           WebClient dlfile = new WebClient();
           Uri url = new Uri("http://valiantro.com/vpatch/" + filename);
           dlfile.DownloadFileAsync(url, Application.StartupPath + @"\grf\" + filename);
            
       }
En Rouge & Gras, le fameux telechargement que j'aimerais joindre avec la progress Bar1