Partage
  • Partager sur Facebook
  • Partager sur Twitter

Problème ProgressBar & WebBrowser

    11 février 2012 à 12:09:30

    Bonjour, je suis en train de faire, un launcher, le problème c'est que je sais pas quoi mettre pour le ProgessBar, et aussi j'ai un autre problème de WebBrowser, il ne me met pas il images.

    S'il vous plaît, aidez moi :(
    Ps: C'est plutôt urgent et je précise que je suis débutant.
    • Partager sur Facebook
    • Partager sur Twitter
      11 février 2012 à 12:56:41

      Citation : SofEvans

      Euh, c'est a cause de l'interpolation moleculaire en fait.
      Certains PC n'utilise pas du gundamnium pour les soudure du processeur, mais de l'or. Or, le gundamnium est le materiau par excellence pour les transmission d'unflux nerveux, l'or ne permettant pas cela.

      C'est a cause de cela qu'il peut y avoir l'interpolation.






      ...
      Sinon, on peut avoir le code ?


      Le code et la bibliothèque que tu utilise (si possible) :-°
      • Partager sur Facebook
      • Partager sur Twitter
        11 février 2012 à 13:02:58

        Je vous passe tout mon système de téléchargement, je voudrais simplement ajouter un ProgressBar. :'(

        Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
                Label4.Show()
                Label4.Text = "Téléchargement à 5%."
                If MsgBox("Avez vous pensez à fermer minecraft ? Veuillez attendre le message de confirmation de la mise à jour. Cela peux prendre de 4 à 6 minutes ! Pendant cette opération le launcher peut ne pas réponde, autrement dit figer, ne vous inquiétez pas, car cela est normale.", MsgBoxStyle.YesNoCancel) = MsgBoxResult.Yes = False Then
                    Exit Sub
                End If
        
                If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft") = True Then
        
                End If
                Label4.Text = "Téléchargement à 5%."
                If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\servers.dat") = True Then
                    Kill(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\servers.dat")
        
                End If
                Label4.Text = "Téléchargement à 5%."
                If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\mods\CJBModPack.zip") = True Then
        
                    Kill(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\mods\CJBModPack.zip")
        
                End If
                Label4.Text = "Téléchargement à 5%.."
                Label4.Text = "Téléchargement à 5%..."
                If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\\minecraft.jar") = True Then
        
                    Kill(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.jar")
        
                End If
                Label4.Text = "Téléchargement à 10%."
                Label4.Text = "Téléchargement à 10%.."
                If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\texturepacks\SphaxPureBDCraft32x.zip") = True Then
        
                    Kill(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\texturepacks\SphaxPureBDCraft32x.zip")
                End If
                Label4.Text = "Téléchargement à 10%.."
                If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\texturepacks\TraditionalBeauty64x.zip") = True Then
        
                    Kill(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\texturepacks\TraditionalBeauty64x.zip")
        
                End If
                Label4.Text = "Téléchargement à 10%..."
                Label4.Text = "Téléchargement à 10%..."
                If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\texturepacks\SphaxPureBDCraft64x.zip") = True Then
                    Kill(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\texturepacks\SphaxPureBDCraft64x.zip")
        
                End If
                Label4.Text = "Téléchargement à 15%."
                If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\texturepacks\soartex64x.zip") = True Then
        
                    Kill(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\texturepacks\soartex64x.zip")
        
                End If
                Label4.Text = "Téléchargement à 15%.."
                Label4.Text = "Téléchargement à 15%..."
                If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\texturepacks\SphaxPureBDCraft128x.zip") = True Then
        
                    Kill(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\texturepacks\SphaxPureBDCraft128x.zip")
        
                End If
                Label4.Text = "Téléchargement à 20%."
                Label4.Text = "Téléchargement à 20%.."
                If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\WorldEdit.jar") = True Then
        
                    Kill(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\WorldEdit.jar")
                End If
                Label4.Text = "Téléchargement à 20%..."
                If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.exe") = True Then
        
                    Kill(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.exe")
                End If
                Label4.Text = "Téléchargement à 25%.."
                If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\texturepacks\SphaxPureBDCraft16x.zip") = True Then
        
                    Kill(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\texturepacks\SphaxPureBDCraft16x.zip")
                End If
                Label4.Text = "Téléchargement à 25%..."
                If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\\bin\minecraft-1.1.jar") = True Then
        
                    Kill(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft-1.1.jar")
        
                End If
                Label4.Text = "Téléchargement à 30%."
                Label4.Text = "Téléchargement à 30%.."
                If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\MynecraftVersion.txt") = True Then
                    Kill(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\MynecraftVersion.txt")
                End If
        
                If System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\MynecraftVersion.txt") = False Then
                    Label4.Text = "Téléchargement à 30%..."
                    My.Computer.Network.DownloadFile("http://dl.dropbox.com/u/49253444/servers.dat", (Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\servers.dat"))
                    Label4.Text = "Téléchargement à 30%..."
                    My.Computer.Network.DownloadFile("http://dl.dropbox.com/u/49253444/minecraft.jar", (Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.jar"))
                    Label4.Text = "Téléchargement à 40%."
                    My.Computer.Network.DownloadFile("http://dl.dropbox.com/u/49253444/minecraft-1.1.jar", (Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft-1.1.jar"))
                    Label4.Text = "Téléchargement à 50%.."
                    My.Computer.Network.DownloadFile("http://dl.dropbox.com/u/49253444/MynecraftVersion.txt", (Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\MynecraftVersion.txt"))
                    Label4.Text = "Téléchargement à 50%..."
                    My.Computer.Network.DownloadFile("http://dl.dropbox.com/u/49253444/SphaxPureBDCraft32x.zip", (Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\texturepacks\SphaxPureBDCraft32x.zip"))
                    Label4.Text = "Téléchargement à 55%."
                    My.Computer.Network.DownloadFile("http://dl.dropbox.com/u/49253444/TraditionalBeauty64x.zip", (Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\texturepacks\TraditionalBeauty64x.zip"))
                    Label4.Text = "Téléchargement à 55%.."
                    My.Computer.Network.DownloadFile("http://dl.dropbox.com/u/49253444/soartex64x.zip", (Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\texturepacks\soartex64x.zip"))
                    Label4.Text = "Téléchargement à 55%..."
                    My.Computer.Network.DownloadFile("http://dl.dropbox.com/u/49253444/SphaxPureBDCraft128x.zip", (Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\texturepacks\SphaxPureBDCraft128x.zip"))
                    Label4.Text = "Téléchargement à 65%."
                    Label4.Text = "Téléchargement à 65%.."
                    My.Computer.Network.DownloadFile("http://dl.dropbox.com/u/49253444/SphaxPureBDCraft64x.zip", (Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\texturepacks\SphaxPureBDCraft64x.zip"))
                    Label4.Text = "Téléchargement à 70%.."
                    My.Computer.Network.DownloadFile("http://dl.dropbox.com/u/49253444/WorldEdit.jar", (Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\WorldEdit.jar"))
                    Label4.Text = "Téléchargement à 75%.."
                    My.Computer.Network.DownloadFile("http://dl.dropbox.com/u/49253444/SphaxPureBDCraft16x.zip", (Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\texturepacks\SphaxPureBDCraft16x.zip"))
                    Label4.Text = "Téléchargement à 80%."
                    My.Computer.Network.DownloadFile("https://s3.amazonaws.com/MinecraftDownload/launcher/Minecraft.exe", (Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\bin\minecraft.exe"))
                    Label4.Text = "Téléchargement à 95.."
                    My.Computer.Network.DownloadFile("http://dl.dropbox.com/u/49253444/CJBModPack.zip", (Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.minecraft\mods\CJBModPack.zip"))
                    Label4.Text = "Téléchargement à 100%.."
                    MsgBox("mise à jour terminer !", MsgBoxStyle.Exclamation)
                    Label4.Hide()
                End If
        
            End Sub
        
        • Partager sur Facebook
        • Partager sur Twitter
          11 février 2012 à 13:05:02

          Salut,

          Je déplace ce sujet sur le forum approprié pour le VB.NET.
          Merci d'y faire attention la prochaine fois ! :)

          Bon courage pour ton problème,
          GuilOooo
          • Partager sur Facebook
          • Partager sur Twitter
          J'ai déménagé sur Zeste de savoir — Ex-manager des modérateurs.
            11 février 2012 à 13:05:15

            Je précise que les label marche a 10% :( , c'est pour cela que je veux un ProgressBar.
            • Partager sur Facebook
            • Partager sur Twitter
            Anonyme
              11 février 2012 à 13:55:54

              Saute la partie WinForms du tuto VB.NET, passe à la partie objets (qui devrait être la deuxième partie, m'enfin bon). Tu reviendras aux WinForms ensuite.
              • Partager sur Facebook
              • Partager sur Twitter

              Problème ProgressBar & WebBrowser

              × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
              × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
              • Editeur
              • Markdown