Advertisement
Guest User

Full Code

a guest
May 30th, 2015
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.69 KB | None | 0 0
  1. Imports System.Net
  2. Public Class Form1
  3.     Dim WithEvents toxic As New WebClient
  4.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  5.         Dim client As WebClient = New WebClient
  6.         toxic.DownloadFileAsync(New Uri("LINK PRO DOWNLOAD"), "CAMINHO")
  7.     End Sub
  8.  
  9.     Private Sub WC_DownloadProgressChanged(ByVal sender As Object, ByVal e As DownloadProgressChangedEventArgs) Handles toxic.DownloadProgressChanged
  10.         ProgressBar1.Value = e.ProgressPercentage
  11.  
  12.         If ProgressBar1.Value = (100) Then
  13.             Shell("CAMINHO DO PROGRAMA A SER EXECUTADO") 'PROGRAMA A SER EXECUTADO
  14.         End If
  15.     End Sub
  16. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement