Results 1 to 11 of 11

Thread: Help,plz?

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2009
    Posts
    10

    Question Help,plz?

    Hi all and thanks for helpping me last time ,but i have another qustion?

    How can i make a button that download a file using http show a
    progress bar about the downloading file state ,any code ,example would be great from you .thanks agine guys
    hope i get answre fast,wating...
    Last edited by Rorschack; Sep 17th, 2009 at 04:23 AM.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Help,plz?

    You can just call My.Computer.Network.DownloadFile and it will handle the saving and the progress with a dialogue. There are several ways you can call it so make sure you read the documentation first to find the best way for your app.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2009
    Posts
    10

    Re: Help,plz?

    Quote Originally Posted by jmcilhinney View Post
    You can just call My.Computer.Network.DownloadFile and it will handle the saving and the progress with a dialogue. There are several ways you can call it so make sure you read the documentation first to find the best way for your app.
    will i knew how to download a file ,but how to view download bar progress i don't know!

    any simple?or full code ?

    ok thanks and wait for you ....

  4. #4

    Thread Starter
    New Member
    Join Date
    Sep 2009
    Posts
    10

    Re: Help,plz?

    i think i found it here
    ,you people have a nice Code Bank.

  5. #5
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: Help,plz?

    I think you read JMC's reply a bit too fast. He clearly stated:
    You can just call My.Computer.Network.DownloadFile and it will handle the saving and the progress with a dialogue.
    You just need to use the overload method that has the showUI parameter.
    Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
    - Abraham Lincoln -

  6. #6

    Thread Starter
    New Member
    Join Date
    Sep 2009
    Posts
    10

    Re: Help,plz?

    I thinks i couldn't do it ,any one ? come on just a button downlod a file "i know how to do that " and show a progress bar for the download !

  7. #7
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: Help,plz?

    Both JMC and Stanav noted that you can do it using an overloaded DownloadFile method. Stanav even gave you the exact parameter to modify, the ShowUI parameter.

    What issues are you having with that?

  8. #8

    Thread Starter
    New Member
    Join Date
    Sep 2009
    Posts
    10

    Re: Help,plz?

    Quote Originally Posted by Negative0 View Post
    Both JMC and Stanav noted that you can do it using an overloaded DownloadFile method. Stanav even gave you the exact parameter to modify, the ShowUI parameter.

    What issues are you having with that?
    the proble is how to show progress bar for the file iam downloading!

  9. #9
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: Help,plz?

    Show us your code. You should be using the ShowUI parameter as was described in the previous posts.

  10. #10
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Help,plz?

    First up, I asked you in a previous thread to provide meaningful titles in future and this thread has another meaningless title. Consider that the title is displayed in the forum home page that contains a list of all thread titles. What would that be like if everyone used titles like yours? How would we know what threads we should look at?

    As for this thread, you've been told over and over where to look for the answer. Apparently you are unwilling to look for yourself.

    This:

    http://msdn.microsoft.com/en-us/library/ack30t8y.aspx

    is a link to the documentation for the DownloadFile method, found simply by searching MSDN for my.computer.network.downloadfile. You could find the same documentation using the Help menu is VS/VB Express or even using the F1 key. None of that is programming; it's just simple computer and web usage. That documentation CLEARLY states:
    showUI

    Boolean. Specifies whether to display the progress of the operation. Default is False.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  11. #11

    Thread Starter
    New Member
    Join Date
    Sep 2009
    Posts
    10

    Re: Help,plz?

    thanks alot ,i should go and try it ,see you .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width