07-10-17, 04:46 PM
07-10-17, 06:08 PM
PHP كود :
public Form1()
{
InitializeComponent();
System.Threading.Thread thread = new System.Threading.Thread(checkupdate) { IsBackground = true };
thread.Start();
}
void checkupdate()
{
string url = "https://dl.dropboxusercontent.com/s/gaxr0fsgogvrok2/update.txt";
string newver = new System.Net.WebClient().DownloadString(url);
newver = newver.Replace(",", ".");
if (newver != Application.ProductVersion)
{
MessageBox.Show("New version: " + newver);
//..........
}
}
17-10-17, 05:14 PM
(07-10-17, 06:08 PM)a.ahmed كتب : [ -> ]ياشيخ أحمد ممكنPHP كود :
public Form1()
{
InitializeComponent();
System.Threading.Thread thread = new System.Threading.Thread(checkupdate) { IsBackground = true };
thread.Start();
}
void checkupdate()
{
string url = "https://dl.dropboxusercontent.com/s/gaxr0fsgogvrok2/update.txt";
string newver = new System.Net.WebClient().DownloadString(url);
newver = newver.Replace(",", ".");
if (newver != Application.ProductVersion)
{
MessageBox.Show("New version: " + newver);
//..........
}
}
إذا تنفظ الأمر يتحمل ProgressBar1 ؟