Results 1 to 2 of 2

Thread: show FTP status....

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2009
    Location
    Scotland/Japan
    Posts
    164

    show FTP status....

    hello i made a thread earlyer but i figured out what was wrong and changed how i do it but now i have another issue


    My.Computer.Network.UploadFile(Form4.TextBox2.Text, "ftp://somesite.com" & Form4.Label1.Text, "uname", "pass", False, 10, FileIO.UICancelOption.DoNothing)

    yes that works but i want it to show the upload progress...

    i know if i set the boolen to true it shows the progess on its own UI but it also shows ware the image is beeing uploaded and i dont want that to happen.....

    so dose anyone have an idea how i could show it on its own progress bar inside the form....
    Between the world we see and the things we fear theres a realm of possibility

    D.L.H. Ind.

    We do what we do in out life to make Yours Simpler

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

    Re: show FTP status....

    You can't use My.Computer.Network.UploadFile in that case. You'll need to use a WebClient, which has an UploadFileAsync method. You can call that and then handle the UploadProgressChanged event to get the required information to update your own ProgressBar.
    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

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