Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
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");
}