ERLEDIGT
JA
JA
ANTWORTEN
3
3
ZUGRIFFE
324
324
EMPFEHLEN
-
Hi
Ich downloade mit webclient ein File.Jetzt möchte ich mir gerne den Status anschauen.Also quasi nen Status Balken.Kann mir da einer ne einfache Lösung vorschlagen?
-
Hi
Ja: Google bemühen!
http://www.google.de/search?hl=de&cl...nG=Suche&meta=Grüße Nico
----------------------
Xing
----------------------
Zitat von Mark Twain (1835-1910)
Zitat von Mike Wilson - Biographie über Larry Ellison (CEO Oracle)
-
Er läd zwar runter aber der progress bar geht nicht.
Was ist hier dran falsch?
Code :1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { WebClient ^myClient = gcnew WebClient(); Uri ^url = gcnew Uri("http://www.meineseite.de/"); String ^file = "test.zip"; myClient->DownloadProgressChanged += gcnew DownloadProgressChangedEventHandler(this, &Form1::DownloadProgressCallback); myClient->DownloadFileCompleted += gcnew AsyncCompletedEventHandler(this, &Form1::DownloadFileCallBack2); myClient->DownloadFileAsync(url, file); } private: System::Void DownloadProgressCallback(System::Object^ sender, System::Net::DownloadProgressChangedEventArgs^ e) { this->progressBar1->Value = 40; //this->label1->Size = e->TotalBytesToReceive.ToString(); //this->label1->re = e->BytesReceived.ToString(); //this->label1->Text = e->ProgressPercentage.ToString(); } private: System::Void DownloadFileCallBack2(System::Object^ sender, System::ComponentModel::AsyncCompletedEventArgs^ e) { MessageBox::Show("Download Completed"); }
-
Habs gefunden wenn ich das ganze mit ftp runterlade geht es.
Geändert von theplake (23.01.08 um 17:04 Uhr)
Ähnliche Themen
-
UploadFile von Webclient
Von pepsi_gx im Forum .NET Web und KommunikationAntworten: 0Letzter Beitrag: 09.03.10, 12:15 -
C# WebClient und fehlende Cookies
Von Neoncortex im Forum .NET Web und KommunikationAntworten: 0Letzter Beitrag: 04.01.09, 16:59 -
über WebClient auf ASMX-Datei
Von Meldur im Forum .NET Web und KommunikationAntworten: 1Letzter Beitrag: 22.09.08, 14:42 -
Upload mittels WebClient
Von kevkev im Forum .NET Web und KommunikationAntworten: 0Letzter Beitrag: 11.01.08, 09:42 -
Terminaldienste über den Webclient
Von Deemax im Forum Hosting & WebserverAntworten: 1Letzter Beitrag: 09.03.02, 18:01





Zitieren

Login





