How to download a file using VB .Net with Progress?

Поділитися
Вставка
  • Опубліковано 27 сер 2024
  • This tutorial helps you to understand how to download any files using .Net Application with the Progress of Download. This tutorial also additionally helps you to learn about how to work with ProgressBar Control.

КОМЕНТАРІ • 49

  • @canallegal5858
    @canallegal5858 4 роки тому +1

    Thank you! It's work perfectly

  • @canallegal5858
    @canallegal5858 4 роки тому +1

    How can I stop the download by a cancel button? I tryed stop by closing the form but it does not cancel the download.

  • @justwatch7310
    @justwatch7310 3 роки тому

    Thank you bro 22.12.2020

  • @mamannan013
    @mamannan013 4 роки тому +1

    After download complete how to show a message. ..?

  • @ikadekyogadwiputra7011
    @ikadekyogadwiputra7011 3 роки тому +1

    Why is there's no e.progresspercentage in VB.Net in Visual Studio 2019?

  • @a1appbuilder
    @a1appbuilder 5 років тому +1

    AddHandler wc.DownloadProgressChanged, AddressOf ProgChanged
    Error: Object reference not set to an instance of an object.
    Cut and paste the code no error until i run it. Hard to tell if u used a textbox or label for lblProgPerc and lblln

    • @jrceg3s
      @jrceg3s 3 роки тому

      The form has to be shown before execution of this line. :)

  • @Eloiby
    @Eloiby 5 років тому +2

    Excellent! can you do it more like JDownloader? New tutorial please! button to cancel download and stop download

    • @ProgramWithBalaji
      @ProgramWithBalaji  5 років тому

      Try the following code to cancel the download
      public virtual void Cancel() { if (this.wc != null) { this.wc.CancelAsync(); ProgChanged.Value = 0;
      } }

  • @OnimOff
    @OnimOff 5 років тому

    Merci énormément !!!! ;)

  • @cbedm
    @cbedm 5 років тому

    Could you help me, I made a multidrive, but I want to separate the percentage of each download .. How could I do it?

    • @ProgramWithBalaji
      @ProgramWithBalaji  5 років тому

      Hi Elias,
      Do you want to download multiple files with different progress bar?

    • @ProgramWithBalaji
      @ProgramWithBalaji  5 років тому

      If so, I will create a seperate video tutorial in the coming weekend on that

  • @ayoub4180
    @ayoub4180 5 років тому

    Simple & CÔÔl

  • @gianlucacostalunga1971
    @gianlucacostalunga1971 Рік тому

    no source code?

  • @exploitscripts8619
    @exploitscripts8619 5 років тому

    how to do to automatically download selected an item (link mega any server) from a combobox by clicking on a button and save it in a project folder and button install and clear (madiafire or mega or any server)

    • @ProgramWithBalaji
      @ProgramWithBalaji  5 років тому

      Sorry, I can't get you. Do you want to store all the links in combobox and then download the selected item?

    • @exploitscripts8619
      @exploitscripts8619 5 років тому

      @@ProgramWithBalaji yes! with link anyserver mega, mediafire

    • @exploitscripts8619
      @exploitscripts8619 5 років тому

      @@ProgramWithBalaji yes with madifire and mega link and a fixed download route

    • @ProgramWithBalaji
      @ProgramWithBalaji  5 років тому

      Use this documentation to learn how to insert links to a combo box
      docs.microsoft.com/en-us/dotnet/framework/winforms/controls/add-and-remove-items-from-a-wf-combobox
      To download the selected url from the combobox use the following code inside the download button click handler
      ComboBoxItem typeItem = (ComboBoxItem)ComboBox1.SelectedItem; string value = typeItem.Content.ToString();
      Now you can download value variable

  • @DjelloulMostefa
    @DjelloulMostefa 6 років тому

    thanks

    • @ProgramWithBalaji
      @ProgramWithBalaji  6 років тому

      You are welcome. I'm glad that I could help you. Please support my channel by subscribing to my channel and sharing my videos :)

    • @DjelloulMostefa
      @DjelloulMostefa 6 років тому

      Balaji S yes

  • @expl0dingcat
    @expl0dingcat 5 років тому

    im getting an error with wc = New WebClient(), I put Dim wc As WebClient along with the imports but I still get the error on, wc = New WebClient()

    • @ProgramWithBalaji
      @ProgramWithBalaji  5 років тому

      Hi, What error you are getting? If possible share your code with me.

    • @expl0dingcat
      @expl0dingcat 5 років тому

      Nevermind i figured it out. Thanks for the great video, keep it up!

    • @ProgramWithBalaji
      @ProgramWithBalaji  5 років тому

      @@expl0dingcat Oh. That's great. What was the Problem that you faced? How you find out that?

  • @nirannjankumar1575
    @nirannjankumar1575 Рік тому +1

    Pls put the source code project

  • @conceptfactory5604
    @conceptfactory5604 3 роки тому

    ProgressPercentage always ZERO and jumps to 100 on download complete, TotalBytesToReceive always -1

  • @a1appbuilder
    @a1appbuilder 5 років тому

    why would the downloaded file be empty

    • @ProgramWithBalaji
      @ProgramWithBalaji  5 років тому

      Hi Bro,
      Sorry, I can't respond you fast. I have been busy with my work. I'm really sorry for that.
      Have you checked your code with my code? Here is my source code pastebin.com/yhDqRceJ
      If it is not working means, let me know.

    • @cfpwastaken
      @cfpwastaken 4 роки тому

      the download link could be invalid

  • @mickaelmch8953
    @mickaelmch8953 5 років тому

    Merci beaucoup pour le tuto ! Possible d'avoir le bloc note que tu utilise en vidéo 10:54 ? J'ai vraiment galère...

    • @ProgramWithBalaji
      @ProgramWithBalaji  5 років тому +1

      Désolé, je ne peux pas vous avoir. Avez-vous besoin de l'explication de 10.54?

    • @mickaelmch8953
      @mickaelmch8953 5 років тому

      @@ProgramWithBalaji Au non, j'ai trouver le lien dans les commentaires - pastebin.com/yhDqRceJ
      Merci beaucoup pour cette vidéo ! :)

    • @ProgramWithBalaji
      @ProgramWithBalaji  5 років тому

      @@mickaelmch8953 Je vous en prie :)

  • @rayanm2175
    @rayanm2175 5 років тому

    what does is e mean?

    • @ProgramWithBalaji
      @ProgramWithBalaji  5 років тому +1

      Hi,
      ProgChanged is a method gets triggered automatically when a download progress changed.
      To this method we will get some information about the current progress of the download. We will receive that information as a second argument which I named as e (which is of type DownloadProgressChanged).
      Hope my answer helps you :)

  • @rayanm2175
    @rayanm2175 5 років тому

    add handler error

    • @ProgramWithBalaji
      @ProgramWithBalaji  5 років тому

      Sorry, I didn't get you.

    • @rayanm2175
      @rayanm2175 5 років тому

      @@ProgramWithBalaji when I click on download button error ( An object reference is not set for an instance of an object) at add handler code

    • @ProgramWithBalaji
      @ProgramWithBalaji  5 років тому

      @@rayanm2175 Hi Dude, Just check your source code with my source code. You can find the source code for this video from pastebin.com/yhDqRceJ
      If you still can't identify the problem, just share your source code with me. I'll help you :)

  • @f1shyv1shy35
    @f1shyv1shy35 4 роки тому

    Hey, could you send me a link to your vb project file, I like the design and I want to try it

    • @ProgramWithBalaji
      @ProgramWithBalaji  4 роки тому

      Sorry Dude, I record this video a year back. So, I don't have the code that I used in the project. I'm so sorry for the inconvenience.