منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب

نسخة كاملة : #AutoUpdater C
أنت حالياً تتصفح نسخة خفيفة من المنتدى . مشاهدة نسخة كاملة مع جميع الأشكال الجمالية .
عند دخول البرنامج
أريد يطلع رساله يوجد تحديث جديد
وتكون علئ  : https://dl.dropboxusercontent.com/s/gaxr...update.txt
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);
 
       //..........
 
   }

(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 ؟