Jump to content

File updates through webserver

- - - - -

  • Please log in to reply
1 reply to this topic

#1
xXAlphaXx

xXAlphaXx

    Learning Programmer

  • Members
  • PipPipPip
  • 85 posts
Okay, so I have been working on this application and I have run into another snag. So far this application performs wonderfully but it also is to serve as an auto updater.

I have looked through various tutorials and I have gotten a so-so understanding about how to do this but I have been struggling to do it successfully.


So far this is what I am running.




Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load


'check for updates and download

        Dim updateCheck As Double

        Dim fileReader As Double

        fileReader = My.Computer.FileSystem.ReadAllText("config.ini")


        'updateCheck = config.ini on webserver





        If fileReader < updateCheck Then

            'download all new files and replace old files

            'fill progress bars as download progresses

            'allow start button to be clicked

        End If



Now, I know I don't want it to do it on a Load event because it will be downloading in the background before the form launches, so what event would I use so this program will begin to download the updates after it loads and then begins to fill it's progress bars so that the users will know when it is done?


Thanks all for the help. ^^

#2
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,722 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
Use the Activate event instead of the Load event.
sudo rm -rf /




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users