Results 1 to 2 of 2

Thread: how can i set 2 url support for update..

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2010
    Posts
    134

    how can i set 2 url support for update..

    Code:
      httpclient = New WebClient
            Dim sourceurl = "http://sample.com/downloa/update.txt" 
            Dim filedir = My.Application.Info.DirectoryPath.ToString & "\" & "update.txt"
    
            Try
                httpclient.DownloadFileAsync(New Uri(sourceurl), (filedir))
    
    
            Catch ex As Exception
                MsgBox("failed update" & ErrorToString(), MsgBoxStyle.Critical)
    
            End Try

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

    Re: how can i set 2 url support for update..

    May I suggest that you actually explain what your problem is? Your thread title doesn't really mean anything and your code is just a bit of code. If you can't be bothered to type a proper description then probably noone else could be bothered to try to work out what you want, which appears to be what has happened. Every time you post, provide a FULL and CLEAR description of EXACTLY what you want to do, how you're trying to do it and what happens when you try. It is far better to post too much information than not enough.
    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