Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 17:11

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Visual basic 2010 downloader

Discussion on Visual basic 2010 downloader within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2012
Posts: 54
Received Thanks: 4
Visual basic 2010 downloader

ich habe mir gerade ein downloader geschrieben wenn ich allerdings denn download button klick sagt er sofort der download sei fertig

hier mal das skript könnte mir jemand sagen was falsch ist

Code:
Imports System.Net



Public Class Form1

    Public WithEvents Downloader As WebClient




    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Downloader = New WebClient
        Downloader.DownloadFileAsync(New Uri(TextBox1.Text), TextBox2.Text)
        Me.Button1.Enabled = False
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Dim speichern = New FolderBrowserDialog
        speichern.ShowDialog()
        Me.TextBox2.Text = speichern.SelectedPath
    End Sub

    Private Sub Downloader_DownloadFileCompleted(ByVal sender As Object, ByVal e As System.ComponentModel.AsyncCompletedEventArgs) Handles Downloader.DownloadFileCompleted
        MsgBox("Der Download ist Fertig!", MsgBoxStyle.Information, "Download beendet")
        Me.ProgressBar1.Value = 0
        Me.Label2.Text = "0 von 0 Bytes"
        Me.Label3.Text = "0%"
        Me.Button2.Enabled = True
    End Sub

    Private Sub Downloader_DownloadProgressChanged(ByVal sender As Object, ByVal e As System.Net.DownloadProgressChangedEventArgs) Handles Downloader.DownloadProgressChanged
        Me.ProgressBar1.Value = e.ProgressPercentage
        Me.Label2.Text = e.BytesReceived & "von" & e.TotalBytesToReceive & "Bytes"
        Me.Label3.Text = e.ProgressPercentage & "%"
    End Sub
End Class
DarkTrick is offline  
Old 07/31/2012, 20:11   #2
 
xNopex's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 827
Received Thanks: 471


durchlesen, freuen.
xNopex is offline  
Thanks
1 User
Old 07/31/2012, 21:28   #3
 
elite*gold: 0
Join Date: Feb 2012
Posts: 54
Received Thanks: 4
danke für die antwort
DarkTrick is offline  
Reply


Similar Threads Similar Threads
Need some help / Visual Basic 2010 C++
04/13/2012 - C/C++ - 0 Replies
I'm new at this and have only little knowledge. I have done some of the TuT's and I do have a few books but I figured I would come here and ask for a few pointers. :D 1. Are there any good sites out there that will teach more than all the mathematical end of this lol. I mean I am learning as I go and I am following along with some of the books but I"m getting board because it's not what i want to do lol. 2. Is there a way to have a program navigate a webpage and fill data in WITHOUT...
[Visual Basic]Downloader
02/19/2011 - .NET Languages - 10 Replies
Hei^^ ich hab mal wieder ne farge^^ also ich würde gerne einen Downlaoder erstellen es soll ein programm sein wo z.b. ein button ein label und ne progressbar drine ist wenn man den button drückt wird eine datei gedownlaodet und die progresspar ist dan die % zahl wv schon gedownloadet wurde.. vllt könnte man paar label machen wo die downloadgeschwindigkeit und die genaue % zahl drine ist.. usw hatt vllt jemadn eine ahnung wie des geht???
Visual Basic 2010 KEY !!!
11/22/2010 - Trading - 1 Replies
Guten Tag verkaufe Visual Basic 10 keys 9 Vorhanden Pro key 5 euro Originale.
Visual Basic 2010
11/14/2010 - .NET Languages - 2 Replies
Moin community hab ma wieder eine frage zu visual basic 2010 und zwar versuch ich ein admin tool für starcraft2 zu erstellen das für livestreamer da ist nur mein problem ist das das programm immer sich in den hintergrund packt sobald ich starcraft2 öffne ich hab es schon mit den befehlen wie me.topmost = true oder me.bringtofront probiert aber nichts funktionert ...



All times are GMT +1. The time now is 17:17.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.