Jinshan Poison PA, rising, such as anti-virus software online upgrade must be not unfamiliar with it? They can be upgraded online using online upgrades without the need for users to visit the site for downloading. Such a function is indeed very convenient for the user. So, do you also want to add a convenient online upgrade to your software? Here is a third party control that can help you achieve it very easily.
The Bkdlcontrol control, a control that can quickly implement online downloads, displays progress through the progress bar while downloading. You can write events when the download is complete, so that we can easily achieve the goal of online upgrades.
To understand the powerful and convenient features of the control, let's take a look at the following example.
Step one: Start Visual Basic 6.0 first and create a new window.
Step two: Load the Bkdlcontrol control.
① Right-click in the Control toolbar, select "Part" and click "Browse" in the pop-up window to locate the Bkdlcontrol control, load it, and name it "DL", because it is a progress bar, so drag the size into an appropriate strip and place it in the Form1 form. Other properties remain the default.
Step three: Load other controls to complete the setup of the interface.
① adds 2 CommandButton controls to the form, with the name Cmdbegin and cmdcancel,caption respectively "Start" and "Cancel", where the Enabled property for Cmdcancel is "False."
② Add a ComboBox control with the name Cbourl, add several download addresses to the list (Figure 1), and the other attributes remain the default. Add this control to select the download address, so that you can use the user's own choice to download the server.